Permalink
Browse files

[fix] Patch http.response to fix connect.vhost issue

  • Loading branch information...
pksunkara committed Mar 27, 2012
1 parent dda33b1 commit 810fdd41b87e7ceeb566506b17f7cb0f947b39d2
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/response-stream.js
View
@@ -43,11 +43,15 @@ var ResponseStream = module.exports = function (options) {
configurable: true
});
- //
- // Proxy to emit "header" event
- //
if (this.response) {
this._headers = this.response._headers = this.response._headers || {};
+
+ // Patch to node core
+ this.response._headerNames = this.response._headerNames || {};
+
+ //
+ // Proxy to emit "header" event
+ //
this._renderHeaders = this.response._renderHeaders;
this.response._renderHeaders = function () {
if (!self._emittedHeader) {

0 comments on commit 810fdd4

Please sign in to comment.