Fix the build
This commit is contained in:
Родитель
341cebad26
Коммит
ea7d7a34f1
|
@ -16,7 +16,8 @@ exports.handleResponse = function(request, source, dest) {
|
|||
|
||||
var accumulate = false;
|
||||
if (source.headers['content-length']) {
|
||||
source.headers['x-original-content-length'] = source.headers['content-length'];
|
||||
source.headers['x-original-content-length'] =
|
||||
source.headers['content-length'];
|
||||
} else if (CONFIG.ingress.accumulateUnknownLengths) {
|
||||
accumulate = true;
|
||||
}
|
||||
|
@ -41,7 +42,7 @@ exports.handleResponse = function(request, source, dest) {
|
|||
var data = Buffer.concat(bufs);
|
||||
|
||||
// We can set the content-length headers now
|
||||
source.headers['x-original-content-length'] =
|
||||
source.headers['x-original-content-length'] =
|
||||
source.headers['content-length'] = count = data.length;
|
||||
|
||||
request.debug('ingress (accumulated) %d bytes', data.length);
|
||||
|
|
|
@ -117,7 +117,7 @@ var SpdyProxy = function(options) {
|
|||
return;
|
||||
}
|
||||
|
||||
forwardResponse.headers['via'] = options.title;
|
||||
forwardResponse.headers.via = options.title;
|
||||
|
||||
emitter.signal('start', 'request.plugin.response');
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче