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
Hi @renataogarcia, I see what you mean. We could check if the request body is a stream and switch between got's streaming API and classic API to restore the hook functionality. I
think this could work if we wrap the response body in a stream in GotResponseif the calling code requests the body as a stream.
After upgrading to 5.1 the
afterResponse
hook is no longer being triggered. ThebeforeRequest
works fine.It seems that 5.1 introduced this change where it is always using streams and as per got docs the
afterResponse
is ignored when using streams.The text was updated successfully, but these errors were encountered: