uppercase request methods

pull/22966/head
Ryan Dahl 2010-08-09 21:23:52 -07:00
parent 7d4e8a9a71
commit 1c5d5e0b72
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ ServerResponse.prototype.writeHeader = function () {
function ClientRequest (socket, method, url, headers) {
OutgoingMessage.call(this, socket);
this.method = method;
this.method = method = method.toUpperCase();
this.shouldKeepAlive = false;
if (method === "GET" || method === "HEAD") {
this.useChunkedEncodingByDefault = false;