diff --git a/lib/spdy/response.js b/lib/spdy/response.js index e607918..64474f9 100644 --- a/lib/spdy/response.js +++ b/lib/spdy/response.js @@ -57,6 +57,8 @@ exports.writeHead = function writeHead (statusCode, reason, obj) { this._headerSent = true if (this.socket._handle) { this.socket._handle._spdyState.stream.respond(this.statusCode, headers) } + + return this; } exports.end = function end (data, encoding, callback) {