diff --git a/README.md b/README.md index 70d189f7..16d081a3 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/lib/src/proxy_layer.dart b/lib/src/proxy_layer.dart index a313a39b..895ff8a2 100644 --- a/lib/src/proxy_layer.dart +++ b/lib/src/proxy_layer.dart @@ -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) { diff --git a/pubspec.yaml b/pubspec.yaml index 5f3d05cf..8b9e1a8c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 homepage: https://github.com/angel-dart/proxy environment: