Fix pkg:http tests to include the accept-encoding header.

BUG=

Review URL: https://codereview.chromium.org//13937008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21135 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
ajohnsen@google.com 2013-04-09 07:51:07 +00:00
parent c62d22dad4
commit 97606a604e
3 changed files with 10 additions and 0 deletions

View file

@ -37,6 +37,7 @@ void main() {
'path': '/',
'headers': {
'content-type': ['application/json; charset=utf-8'],
'accept-encoding': ['gzip'],
'transfer-encoding': ['chunked']
},
'body': '{"hello": "world"}'

View file

@ -36,6 +36,7 @@ main() {
'path': '/',
'headers': {
'content-length': ['0'],
'accept-encoding': ['gzip'],
'x-random-header': ['Value'],
'x-other-header': ['Other Value']
},
@ -62,6 +63,7 @@ main() {
'application/x-www-form-urlencoded; charset=utf-8'
],
'content-length': ['40'],
'accept-encoding': ['gzip'],
'x-random-header': ['Value'],
'x-other-header': ['Other Value']
},
@ -83,6 +85,7 @@ main() {
'method': 'POST',
'path': '/',
'headers': {
'accept-encoding': ['gzip'],
'content-length': ['0'],
'content-type': ['text/plain'],
'x-random-header': ['Value'],
@ -110,6 +113,7 @@ main() {
'content-type': [
'application/x-www-form-urlencoded; charset=utf-8'
],
'accept-encoding': ['gzip'],
'content-length': ['40'],
'x-random-header': ['Value'],
'x-other-header': ['Other Value']
@ -133,6 +137,7 @@ main() {
'path': '/',
'headers': {
'content-length': ['0'],
'accept-encoding': ['gzip'],
'content-type': ['text/plain'],
'x-random-header': ['Value'],
'x-other-header': ['Other Value']
@ -154,6 +159,7 @@ main() {
'path': '/',
'headers': {
'content-length': ['0'],
'accept-encoding': ['gzip'],
'x-random-header': ['Value'],
'x-other-header': ['Other Value']
}
@ -172,6 +178,7 @@ main() {
'path': '/',
'headers': {
'content-length': ['0'],
'accept-encoding': ['gzip'],
'x-random-header': ['Value'],
'x-other-header': ['Other Value']
},
@ -197,6 +204,7 @@ main() {
'path': '/',
'headers': {
'content-length': ['0'],
'accept-encoding': ['gzip'],
'x-random-header': ['Value'],
'x-other-header': ['Other Value']
},

View file

@ -27,6 +27,7 @@ void main() {
'path': '/',
'headers': {
'content-type': ['text/plain; charset=utf-8'],
'accept-encoding': ['gzip'],
'content-length': ['5']
},
'body': 'hello'