Bug 985932 - Fix error HTTP response in test_partially_cached_content.html, r=sworkman

This commit is contained in:
Honza Bambas 2014-04-04 14:42:06 +02:00
parent ad97eaff34
commit 0a884a3a0c

View File

@ -12,7 +12,7 @@ function ERR(response, responseCode, responseCodeStr, msg)
setState("expectedRequestType", "");
// Dump to console log and send to client in response.
dump("SERVER ERROR: " + msg + "\n");
response.write("HTTP/1.1" + responseCode + responseCodeStr + "\r\n");
response.write("HTTP/1.1 " + responseCode + " " + responseCodeStr + "\r\n");
response.write("Content-Type: text/html; charset=UTF-8\r\n");
response.write("Content-Length: " + msg.length + "\r\n");
response.write("\r\n");