blob: 1267a69d8c4e7dd5fdcf2dea0123db1253afd18b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
function handleRequest(aRequest, aResponse) {
aResponse.setStatusLine(aRequest.httpVersion, 200);
let cookie = "";
if (aRequest.hasHeader("Cookie")) {
cookie = aRequest.getHeader("Cookie");
}
aResponse.write("cookie:" + cookie);
if (aRequest.queryString) {
aResponse.setHeader("Set-Cookie", "foopy=" + aRequest.queryString);
}
}
|