This commit is contained in:
thosakwe 2017-01-25 17:43:46 -05:00
parent 2613f1db0a
commit b493eb540d
3 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# angel_proxy
![version 1.0.0-dev+3](https://img.shields.io/badge/version-1.0.0--dev+3-red.svg)
![version 1.0.0-dev+6](https://img.shields.io/badge/version-1.0.0--dev+6-red.svg)
![build status](https://travis-ci.org/angel-dart/proxy.svg?branch=master)
Angel middleware to forward requests to another server (i.e. pub serve).

View file

@ -22,7 +22,9 @@ String _pathify(String path) {
/// Copies HTTP headers ;)
void copyHeaders(HttpHeaders from, HttpHeaders to) {
from.forEach(to.set);
from.forEach((k, v) {
if (k != HttpHeaders.CONTENT_ENCODING || !v.contains('gzip')) to.set(k, v);
});
/*to
..chunkedTransferEncoding = from.chunkedTransferEncoding

View file

@ -1,6 +1,6 @@
name: angel_proxy
description: Angel middleware to forward requests to another server (i.e. pub serve).
version: 1.0.0-dev+5
version: 1.0.0-dev+6
author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/proxy
environment: