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 content type header for block v3 ssz response #5062

Merged

Conversation

eserilev
Copy link
Collaborator

@eserilev eserilev commented Jan 14, 2024

Issue Addressed

Issue #5061

Proposed Changes

Fix content type header for block v3 ssz response

Also standardize the way Content-Type application/octet-stream header is applied

@eserilev eserilev changed the title Standardize Fix content type header for block v3 ssz response Jan 14, 2024
@@ -4273,8 +4276,8 @@ pub fn serve<T: BeaconChainTypes>(
let (state, _execution_optimistic, _finalized) = state_id.state(&chain)?;
Response::builder()
.status(200)
.header("Content-Type", "application/ssz")
Copy link
Collaborator Author

@eserilev eserilev Jan 14, 2024

Choose a reason for hiding this comment

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

This is a lighthouse specific endpoint that was returning a Content-Type application/ssz header instead of application/octet-stream. If that was done on purpose, this change can be reverted

Copy link
Member

Choose a reason for hiding this comment

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

I think this was just a bug! Nice catch!

Copy link
Member

Choose a reason for hiding this comment

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

Opened an issue to delete it too, as this endpoint is v old #5063

Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

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

LGTM

@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. deneb v4.6.0 ETA Q1 2024 labels Jan 15, 2024
@michaelsproul michaelsproul merged commit 72bcf47 into sigp:unstable Jan 15, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deneb ready-for-merge This PR is ready to merge. v4.6.0 ETA Q1 2024
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants