1.0.4
This commit is contained in:
parent
84f2fd07f5
commit
cfadd31934
3 changed files with 15 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
# angel_proxy
|
||||
|
||||
[![version 1.0.3](https://img.shields.io/badge/version-1.0.3-brightgreen.svg)](https://pub.dartlang.org/packages/angel_proxy)
|
||||
[![version 1.0.4](https://img.shields.io/badge/version-1.0.4-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).
|
||||
|
|
|
@ -127,6 +127,19 @@ class ProxyLayer {
|
|||
|
||||
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;
|
||||
|
||||
if (rs.headers[HttpHeaders.CONTENT_ENCODING] != null)
|
||||
res.io.headers.set(HttpHeaders.CONTENT_ENCODING,
|
||||
rs.headers[HttpHeaders.CONTENT_ENCODING]);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: angel_proxy
|
||||
description: Angel middleware to forward requests to another server (i.e. pub serve).
|
||||
version: 1.0.3
|
||||
version: 1.0.4
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/proxy
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue