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
I was debugging why fasthttp and fiber integration invoke SetRequest and then SetRequestBody immediately after, even though SetRequest sets the requestBody (same as SetRequestBody).
The issue is that for these two integrations, the Body has to be copied. Since the requestBody is lazily read (when Body is read), for these two integrations it never happens because we copied the Body and that copied Body is never read.
The text was updated successfully, but these errors were encountered:
ribice
changed the title
scope.RequestBody empty while being set to event.Data
scope.RequestBody empty while being set to event.Data in fasthttp/fiber integration
Mar 29, 2024
I was debugging why fasthttp and fiber integration invoke
SetRequest
and thenSetRequestBody
immediately after, even thoughSetRequest
sets the requestBody (same as SetRequestBody).The issue is that for these two integrations, the Body has to be copied. Since the requestBody is lazily read (when Body is read), for these two integrations it never happens because we copied the Body and that copied Body is never read.
The text was updated successfully, but these errors were encountered: