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
The code writes to MoreHeaders without initializing it. The actual initialization happens in Get/Post/etc, so if you use Request directly, you can get:
Request is a part of the public API, but it relies on being called by
Get/Post/etc to properly initialize its options. Namely:
1) it may crash on a nil map assignment if there are MoreHeaders,
2) it does not handle microversions.
This change moves the relevant code to Request.
The code writes to
MoreHeaders
without initializing it. The actual initialization happens inGet
/Post
/etc, so if you useRequest
directly, you can get:The text was updated successfully, but these errors were encountered: