diff --git a/lib/http.js b/lib/http.js index 8c9a850f91..fee73d2b02 100644 --- a/lib/http.js +++ b/lib/http.js @@ -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;