зеркало из https://github.com/mozilla/gecko-dev.git
10 строки
317 B
JavaScript
10 строки
317 B
JavaScript
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);
|
|
}
|