mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
efc00313f9
--HG-- extra : rebase_source : 1eed4ea5b846e5ce608593ef732bedc3194268e3
10 lines
415 B
JavaScript
10 lines
415 B
JavaScript
// SJS file for getAllResponseRequests vs getResponseRequest
|
|
function handleRequest(request, response)
|
|
{
|
|
// Header strings are interpreted by truncating the characters in them to
|
|
// bytes, so U+2026 HORIZONTAL ELLIPSIS here must be encoded manually: using
|
|
// "…" as the string would write a \x26 byte.
|
|
response.setHeader("X-Custom-Header-Bytes", "\xE2\x80\xA6", false);
|
|
response.write("42");
|
|
}
|