Skip to content

Don't pass unused parameters in fetch method - #819

Open
roarc0 wants to merge 1 commit into
gocolly:masterfrom
roarc0:roarc0/small-refactor
Open

Don't pass unused parameters in fetch method#819
roarc0 wants to merge 1 commit into
gocolly:masterfrom
roarc0:roarc0/small-refactor

Conversation

@roarc0

@roarc0 roarc0 commented Jun 15, 2024

Copy link
Copy Markdown

No description provided.

@StantonMatt StantonMatt left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked this locally. The cleanup looks behavior-neutral: the removed fetch arguments are already available through the constructed *http.Request, and Request is still populated from req.URL, req.Header, req.Host, the method, body, context, and depth.

Validation:

go test ./... -count=1
git diff --check origin/master...HEAD

Both passed. GitHub reports no hosted checks for this PR branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants