diff --git a/pkg/http/test/client_test.dart b/pkg/http/test/client_test.dart index daa3acba2a2..e898426d475 100644 --- a/pkg/http/test/client_test.dart +++ b/pkg/http/test/client_test.dart @@ -37,6 +37,7 @@ void main() { 'path': '/', 'headers': { 'content-type': ['application/json; charset=utf-8'], + 'accept-encoding': ['gzip'], 'transfer-encoding': ['chunked'] }, 'body': '{"hello": "world"}' diff --git a/pkg/http/test/http_test.dart b/pkg/http/test/http_test.dart index 81cca764d0e..b3227f50baf 100644 --- a/pkg/http/test/http_test.dart +++ b/pkg/http/test/http_test.dart @@ -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'] }, diff --git a/pkg/http/test/request_test.dart b/pkg/http/test/request_test.dart index ea49199352f..e17589cc867 100644 --- a/pkg/http/test/request_test.dart +++ b/pkg/http/test/request_test.dart @@ -27,6 +27,7 @@ void main() { 'path': '/', 'headers': { 'content-type': ['text/plain; charset=utf-8'], + 'accept-encoding': ['gzip'], 'content-length': ['5'] }, 'body': 'hello'