+6
This commit is contained in:
parent
2613f1db0a
commit
b493eb540d
3 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
# angel_proxy
|
# 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)
|
![build status](https://travis-ci.org/angel-dart/proxy.svg?branch=master)
|
||||||
|
|
||||||
Angel middleware to forward requests to another server (i.e. pub serve).
|
Angel middleware to forward requests to another server (i.e. pub serve).
|
||||||
|
|
|
@ -22,7 +22,9 @@ String _pathify(String path) {
|
||||||
|
|
||||||
/// Copies HTTP headers ;)
|
/// Copies HTTP headers ;)
|
||||||
void copyHeaders(HttpHeaders from, HttpHeaders to) {
|
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
|
/*to
|
||||||
..chunkedTransferEncoding = from.chunkedTransferEncoding
|
..chunkedTransferEncoding = from.chunkedTransferEncoding
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: angel_proxy
|
name: angel_proxy
|
||||||
description: Angel middleware to forward requests to another server (i.e. pub serve).
|
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>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
homepage: https://github.com/angel-dart/proxy
|
homepage: https://github.com/angel-dart/proxy
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue