Comparing version 0.0.5 to 0.0.6
@@ -80,2 +80,17 @@ // Load modules | ||
internals.Response.prototype.writeHead = function () { | ||
var headers = ((arguments.length === 2 && typeof arguments[1] === 'object') ? arguments[1] : (arguments.length === 3 ? arguments[2] : {})); | ||
var result = Http.ServerResponse.prototype.writeHead.apply(this, arguments); | ||
this._headers = this._headers || {}; | ||
var keys = Object.keys(headers); | ||
for (var i = 0, il = keys.length; i < il; ++i) { | ||
this._headers[keys[i]] = headers[keys[i]]; | ||
} | ||
return result; | ||
}; | ||
internals.Response.prototype.write = function (chunk, encoding) { | ||
@@ -82,0 +97,0 @@ |
{ | ||
"name": "shot", | ||
"description": "Injects a fake HTTP request/response into a node HTTP server", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)", | ||
@@ -6,0 +6,0 @@ "contributors":[ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9073
149