mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
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:
parent
c62d22dad4
commit
97606a604e
3 changed files with 10 additions and 0 deletions
|
@ -37,6 +37,7 @@ void main() {
|
|||
'path': '/',
|
||||
'headers': {
|
||||
'content-type': ['application/json; charset=utf-8'],
|
||||
'accept-encoding': ['gzip'],
|
||||
'transfer-encoding': ['chunked']
|
||||
},
|
||||
'body': '{"hello": "world"}'
|
||||
|
|
|
@ -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']
|
||||
},
|
||||
|
|
|
@ -27,6 +27,7 @@ void main() {
|
|||
'path': '/',
|
||||
'headers': {
|
||||
'content-type': ['text/plain; charset=utf-8'],
|
||||
'accept-encoding': ['gzip'],
|
||||
'content-length': ['5']
|
||||
},
|
||||
'body': 'hello'
|
||||
|
|
Loading…
Reference in a new issue