mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
13 lines
366 B
Plaintext
13 lines
366 B
Plaintext
|
|
||
|
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);
|
||
|
|
||
|
// used by test_user_agent tests
|
||
|
response.write(request.getHeader('User-Agent'));
|
||
|
}
|
||
|
|