You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it(`should do request with gzip`,async()=>{constRESPONSE_BODY={hello: 'world'};server.post('/encrypt/body/:id',(_req,res)=>res.json(RESPONSE_BODY));constdata={test: 'json'};const_data=zlib.gzipSync(Buffer.from(JSON.stringify(data)));awaitrequest.post(URI).set('Content-Encoding','gzip').set('Content-Type','application/json').set('Content-Length',_data.length.toString()).set('Accept-Encoding','gzip').send(_data);});
The test code was written as above.
However, an internal error occurs on the server side...
But, When the server code is the same, the test using curl works fine.
The test code was written as above.
However, an internal error occurs on the server side...
But, When the server code is the same, the test using curl works fine.
I want you to give me a hint to solve this...
(with restify)
The text was updated successfully, but these errors were encountered: