blob: dfe2f31645a75605b8398ef74767efb030d27ff8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
function handleRequest(aRequest, aResponse) {
aResponse.setStatusLine(aRequest.httpVersion, 200);
const maxBytesPerCookie = 4096;
const maxBytesPerCookiePath = 1024;
aResponse.setHeader(
"Set-Cookie",
"a=" + Array(maxBytesPerCookie + 1).join("x"),
true
);
aResponse.setHeader(
"Set-Cookie",
"b=c; path=/" + Array(maxBytesPerCookiePath + 1).join("x"),
true
);
}
|