gecko-dev/netwerk/test/mochitests/file_1503201.sjs

5 строки
180 B
JavaScript

function handleRequest(request, response) {
response.setStatusLine(request.httpVersion, 401, "Unauthorized");
response.setHeader("WWW-Authenticate", "Bearer realm=\"foo\"");
}