Skip to content

Add user-agent to request header#258

Merged
hatoo merged 1 commit into
hatoo:masterfrom
Chocobo1:user-agent
Jul 10, 2023
Merged

Add user-agent to request header#258
hatoo merged 1 commit into
hatoo:masterfrom
Chocobo1:user-agent

Conversation

@Chocobo1
Copy link
Copy Markdown
Contributor

@Chocobo1 Chocobo1 commented Jul 9, 2023

Quote from https://www.rfc-editor.org/rfc/rfc9110#name-user-agent:

A user agent SHOULD send a User-Agent header field in each request unless specifically configured not to do so.

Closes #257.

@Chocobo1 Chocobo1 force-pushed the user-agent branch 2 times, most recently from 87302bc to b6859a0 Compare July 9, 2023 18:04
@hatoo
Copy link
Copy Markdown
Owner

hatoo commented Jul 10, 2023

@Chocobo1
LGTM!

Could you apply rustfmt (just run cargo fmt)?
I'll merge after that. Thanks!

Quote from https://www.rfc-editor.org/rfc/rfc9110#name-user-agent:
> A user agent SHOULD send a User-Agent header field in each request
> unless specifically configured not to do so.

Closes hatoo#257.
@Chocobo1
Copy link
Copy Markdown
Contributor Author

Could you apply rustfmt (just run cargo fmt)?
I'll merge after that. Thanks!

OK, done.

@hatoo hatoo merged commit 186d800 into hatoo:master Jul 10, 2023
@Chocobo1 Chocobo1 deleted the user-agent branch July 10, 2023 07:31
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.

Add user-agent header

2 participants