Skip compression in case of empty string body (#1080)

* Fix #1069

* Updated test

* Updated test
This commit is contained in:
Tomas Della Vedova
2020-02-04 10:28:42 +01:00
committed by GitHub
parent 4b54013248
commit d701516dda
3 changed files with 58 additions and 10 deletions

View File

@ -34,7 +34,6 @@ test('Should emit a request event when a request is performed', t => {
body: '',
querystring: 'q=foo%3Abar',
headers: {
'Content-Type': 'application/json',
'Content-Length': '0'
}
},
@ -86,7 +85,6 @@ test('Should emit a response event in case of a successful response', t => {
body: '',
querystring: 'q=foo%3Abar',
headers: {
'Content-Type': 'application/json',
'Content-Length': '0'
}
},
@ -136,7 +134,6 @@ test('Should emit a response event with the error set', t => {
body: '',
querystring: 'q=foo%3Abar',
headers: {
'Content-Type': 'application/json',
'Content-Length': '0'
}
},