[Backport 7.x] Always display request params and options in request event (#1538)

Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2021-08-24 11:27:59 +02:00
committed by GitHub
parent ee867daad0
commit 642b15cd5c
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