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

Fix the Date header generated by glean-core #993

Merged
merged 1 commit into from
Jun 22, 2020

Conversation

Dexterp37
Copy link
Contributor

Drop the sub-second precision and report GMT
as timezone identifier, as required by https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date

Drop the sub-second precision and report GMT
as timezone identifier, as required by https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date
@auto-assign auto-assign bot requested a review from brizental June 22, 2020 11:09
@@ -88,11 +88,25 @@ impl PingRequest {
gzipper.finish().ok()
}

/// Creates a formatted date string that can be used with Date headers.
fn create_date_header_value(current_time: DateTime<Utc>) -> String {
Copy link
Member

Choose a reason for hiding this comment

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

Not wrong or anything, but this could just be a free-standing function in this module.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Next time @badboy , next time! :-)

Copy link
Contributor

@brizental brizental left a comment

Choose a reason for hiding this comment

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

LGTM!

@Dexterp37 Dexterp37 merged commit 01dd020 into mozilla:main Jun 22, 2020
@Dexterp37 Dexterp37 deleted the rust_date_header branch June 22, 2020 12:27
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.

3 participants