summaryrefslogtreecommitdiffstats
path: root/netwerk/test/mochitests/method.sjs
blob: f29b20aa00660907e899842a06198b3a16fcdf45 (plain)
1
2
3
4
5
6
7
8
9
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);
}