This commit is contained in:
James Willcox 2014-07-11 00:12:11 -05:00
Родитель 341cebad26
Коммит ea7d7a34f1
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -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');