summaryrefslogtreecommitdiffstats
path: root/netwerk/test/mochitests/method.sjs
blob: 386c15d7943905370087d16f2191bb322c474948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

function handleRequest(request, response)
{
    // avoid confusing cache behaviors
    response.setHeader("Cache-Control", "no-cache", false);
    response.setHeader("Content-Type", "text/plain", false);
    response.setHeader("Access-Control-Allow-Origin", "*", false);

    // echo method
    response.write(request.method);
}