Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
berndfuhrmann committed Nov 18, 2024
1 parent 4f05b21 commit e756696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk_contrib/fetch/lib/fetch_p.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function enableCapture(baseFetchFunction, requestClass, downstreamXRayEnabled, s
const thisDownstreamXRayEnabled = !!downstreamXRayEnabled;
const thisSubsegmentCallback = subsegmentCallback;
// Standardize request information
const request = args[0] instanceof requestClass ?
const request = (args[0] instanceof requestClass && args.length === 1) ?
args[0] :
new requestClass(...args);

Expand Down

0 comments on commit e756696

Please sign in to comment.