зеркало из https://github.com/mozilla/gecko-dev.git
10 строки
300 B
JavaScript
10 строки
300 B
JavaScript
function handleRequest(request, response) {
|
|
response.setStatusLine(request.httpVersion, 200, "OK");
|
|
var header = "no WhatToVary header";
|
|
if (request.hasHeader("WhatToVary")) {
|
|
header = request.getHeader("WhatToVary");
|
|
response.setHeader("Vary", header);
|
|
}
|
|
response.write(header);
|
|
}
|