зеркало из https://github.com/mozilla/gecko-dev.git
Add basic SJS debugging code for bug 536603.
--HG-- extra : transplant_source : %E4%AA%11pN%83Y2%B7%DAB%89%96V%DB%06%3C%04%F6%15
This commit is contained in:
Родитель
e40f085c42
Коммит
5c2887c20a
|
@ -3,6 +3,8 @@ const DEBUG_all_stub = false;
|
|||
|
||||
function handleRequest(request, response)
|
||||
{
|
||||
dump("ccd.sjs: handling request with query " + request.queryString + "\n");
|
||||
|
||||
// Decode the query string to know what test we're doing.
|
||||
|
||||
// character 1: 'I' = text/css response, 'J' = text/html response
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
function handleRequest(request, response)
|
||||
{
|
||||
dump("redirect.sjs: handling request with query " + request.queryString + "\n");
|
||||
response.setStatusLine(request.httpVersion, 301, "Moved Permanently");
|
||||
response.setHeader("Location", request.queryString, false);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче