Bye to/from
This commit is contained in:
parent
3bfec883d2
commit
19f2e23c6a
3 changed files with 2 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
|||
# angel_proxy
|
||||
|
||||
[![version 1.0.5](https://img.shields.io/badge/version-1.0.5-brightgreen.svg)](https://pub.dartlang.org/packages/angel_proxy)
|
||||
[![version 1.0.5+1](https://img.shields.io/badge/version-1.0.5+1-brightgreen.svg)](https://pub.dartlang.org/packages/angel_proxy)
|
||||
[![build status](https://travis-ci.org/angel-dart/proxy.svg)](https://travis-ci.org/angel-dart/proxy)
|
||||
|
||||
Angel middleware to forward requests to another server (i.e. pub serve).
|
||||
|
|
|
@ -126,20 +126,6 @@ class ProxyLayer {
|
|||
..end();
|
||||
|
||||
copyHeaders(rs.headers, res.io.headers);
|
||||
|
||||
var to = res.io.headers, from = rs.headers;
|
||||
|
||||
to
|
||||
..chunkedTransferEncoding = from.chunkedTransferEncoding
|
||||
..contentLength = from.contentLength
|
||||
..contentType = from.contentType
|
||||
..date = from.date
|
||||
..expires = from.expires
|
||||
..host = from.host
|
||||
..ifModifiedSince = from.ifModifiedSince
|
||||
..persistentConnection = from.persistentConnection
|
||||
..port = from.port;
|
||||
|
||||
_printDebug('Outgoing content length: ${res.io.contentLength}');
|
||||
|
||||
if (rs.headers[HttpHeaders.CONTENT_ENCODING]?.contains('gzip') == true) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: angel_proxy
|
||||
description: Angel middleware to forward requests to another server (i.e. pub serve).
|
||||
version: 1.0.5
|
||||
version: 1.0.5+1
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/proxy
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue