Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request Header Updates (User-Agent, Accept-Language) #300

Merged
merged 2 commits into from
Oct 26, 2017

Conversation

Marcus-L
Copy link
Contributor

@Marcus-L Marcus-L commented Oct 8, 2017

Allowed UserAgent to be set by users of the AcmeClient (per https://tools.ietf.org/html/draft-ietf-acme-acme-07#section-6.1 the ACME client should be set by the software).

Updated the AcmeProtocol.HTTP_USER_AGENT_FMT per RFC 7231 5.5.3 format, to use "/" instead of space and remove the "v".

Best practice would be for the AcmeClient users to simply append (or prepend) their User Agent string to the existing ACMEdotNET one, ex: "Certify/2.0.13 ACMEdotNET/0.9.0.323 (ACME 1.0)"

* Per https://tools.ietf.org/html/draft-ietf-acme-acme-07#section-6.1 the ACME client should be set by the software
* Updated the AcmeProtocol.HTTP_USER_AGENT_FMT per RFC 7231 5.5.3 format
* per https://tools.ietf.org/html/draft-ietf-acme-acme-07#section-6.1 the language header should be set to allow ACME to send localized error messages
@Marcus-L Marcus-L changed the title User-Agent Updates Request Header Updates (User-Agent, Accept-Language) Oct 8, 2017
@Marcus-L
Copy link
Contributor Author

Marcus-L commented Oct 8, 2017

Added Accept-Language header as well to allow the ACME service to return localized error messages (also per https://tools.ietf.org/html/draft-ietf-acme-acme-07#section-6.1)

@ebekker
Copy link
Owner

ebekker commented Oct 26, 2017

Changes look great, thanks!

@ebekker ebekker merged commit fdac4f9 into ebekker:master Oct 26, 2017
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