this.useChunkedEncodingByDefault = false;
this.shouldKeepAlive = false;
}
-
- this._httpVersion = req.httpVersion;
}
util.inherits(ServerResponse, OutgoingMessage);
headers = obj;
}
- var statusLine = 'HTTP/' + this._httpVersion
- + ' ' + statusCode.toString()
- + ' ' + reasonPhrase + CRLF;
+ var statusLine = 'HTTP/1.1 ' + statusCode.toString() + ' ' +
+ reasonPhrase + CRLF;
if (statusCode === 204 || statusCode === 304 ||
(100 <= statusCode && statusCode <= 199)) {
}
function response_validator(server_response, client_got_eof, timed_out) {
- var expected_response = ("HTTP/1.0 200 OK\r\n"
+ var expected_response = ("HTTP/1.1 200 OK\r\n"
+ "Content-Type: text/plain\r\n"
+ "Connection: close\r\n"
+ "\r\n"