Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
michael@0 | 1 | function handleRequest(request, response) { |
michael@0 | 2 | var page = "<!DOCTYPE html><html><body>bug 906190</body></html>"; |
michael@0 | 3 | var path = "https://test1.example.com/browser/browser/base/content/test/general/"; |
michael@0 | 4 | var url = path + "file_bug906190_redirected.html"; |
michael@0 | 5 | |
michael@0 | 6 | response.setHeader("Cache-Control", "no-cache", false); |
michael@0 | 7 | response.setHeader("Content-Type", "text/html", false); |
michael@0 | 8 | response.setStatusLine(request.httpVersion, "302", "Found"); |
michael@0 | 9 | response.setHeader("Location", url, false); |
michael@0 | 10 | response.write(page); |
michael@0 | 11 | } |