Always display request params and options in request event (#1531)

This commit is contained in:
Tomas Della Vedova
2021-08-24 11:25:48 +02:00
committed by GitHub
parent a9b62049cd
commit a7658b2a66
2 changed files with 40 additions and 2 deletions

View File

@ -420,8 +420,6 @@ class Transport {
// handles request timeout
params.timeout = toMs(options.requestTimeout || this.requestTimeout)
if (options.asStream === true) params.asStream = true
meta.request.params = params
meta.request.options = options
// handle compression
if (params.body !== '' && params.body != null) {
@ -452,6 +450,8 @@ class Transport {
}
}
meta.request.params = params
meta.request.options = options
// still need to check the product or waiting for the check to finish
if (this[kProductCheck] === 0 || this[kProductCheck] === 1) {
// let pass info requests