This commit is contained in:
gospider
2025-03-26 10:21:28 +08:00
parent aa18032511
commit f1d120a5f8
4 changed files with 12 additions and 10 deletions

View File

@@ -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}