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

Date header value is malformed for the first 9 days of the month. #647

Open
RandomHashTags opened this issue Jan 5, 2025 · 0 comments
Open

Comments

@RandomHashTags
Copy link

RandomHashTags commented Jan 5, 2025

This library uses the preferred format, but the value is missing the second digit for the first 9 days of the month, which is not valid according to the spec.

Expected result
Date: Sun, 05 Jan 2025 23:09:13 GMT

Actual result
Date: Sun, 5 Jan 2025 23:09:13 GMT

Hummingbird version: 2.6.1

Operating system: Arch linux (6.12.8-arch1-1)

Swift version: 5.10

swift --version

Swift version 6.0.3 (swift-6.0.3-RELEASE)
Target: x86_64-unknown-linux-gnu

Suspected problem source

formatted += timeStruct.tm_mday.description

Not sure if the Expires, If-Modified-Since or other date related headers are malformed.

@RandomHashTags RandomHashTags changed the title Date header value is malformed. Date header value is malformed for the first 9 days. Jan 5, 2025
@RandomHashTags RandomHashTags changed the title Date header value is malformed for the first 9 days. Date header value is malformed for the first 9 days of the month. Jan 5, 2025
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

No branches or pull requests

1 participant