Thu, 15 Jan 2015 21:13:52 +0100
Remove forgotten relic of ABI crash risk averse overloaded method change.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 // This provides the tests with a page with different titles based on whether
6 // a cookie is present or not.
8 function handleRequest(request, response) {
9 response.setStatusLine(request.httpVersion, 200, "OK");
10 response.setHeader("Content-Type", "text/html", false);
12 var cookie = "name=value";
13 var title = "No Cookie";
14 if (request.hasHeader("Cookie") && request.getHeader("Cookie") == cookie)
15 title = "Cookie";
16 else
17 response.setHeader("Set-Cookie", cookie, false);
19 response.write("<html><head><title>");
20 response.write(title);
21 response.write("</title><body>test page</body></html>");
22 }