gecko-dev/dom/base/test/file_explicit_user_agent.sjs

9 lines
214 B
JavaScript

function handleRequest(request, response)
{
if (request.hasHeader("User-Agent")) {
response.setHeader("Result-User-Agent",
request.getHeader("User-Agent"));
}
response.write("");
}