mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
sync
This commit is contained in:
@@ -153,7 +153,6 @@ func (obj *Client) retryRequest(ctx context.Context, option RequestOption, uhref
|
||||
option.Method = http.MethodGet
|
||||
option.disBody = true
|
||||
option.Headers = nil
|
||||
option.Referer = response.Url().String()
|
||||
if getDomain(loc) == getDomain(response.Url()) {
|
||||
if Authorization := response.Request().Header.Get("Authorization"); Authorization != "" {
|
||||
option.Headers = map[string]any{"Authorization": Authorization}
|
||||
|
||||
Reference in New Issue
Block a user