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: undo stringify of last_modified timestamp #154

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

pratikmishra356
Copy link
Collaborator

Problem

Stringified last_modified header

Solution

parse it as rfc2822

Environment variable changes

NA

Pre-deployment activity

NA

Post-deployment activity

NA

API changes

Endpoint Method Request body Response Body
API GET/POST, etc request response

Possible Issues in the future

NA

@pratikmishra356 pratikmishra356 requested a review from a team as a code owner July 10, 2024 09:09
if let Ok(header_value) = value {
resp_builder
.insert_header((AppHeader::LastModified.to_string(), header_value));
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Possible to log the error if the parse fails ?

@pratikmishra356 pratikmishra356 force-pushed the fix-last-modified-format branch from 3ba8d19 to 6cad389 Compare July 10, 2024 10:38
@sauraww sauraww merged commit 8334925 into main Jul 10, 2024
4 checks passed
@sauraww sauraww deleted the fix-last-modified-format branch July 10, 2024 10:49
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