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

Expose the executable bit into a HTTP header #27

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

stv0g
Copy link
Contributor

@stv0g stv0g commented Mar 4, 2024

I've implemented a header named NAR-Executable.

I decided against the X- prefix as its discouraged since RFC6648.

Closes #2

@@ -164,7 +164,10 @@ func Handler(w http.ResponseWriter, req *http.Request) {
// TODO: use http.DetectContentType as a fallback
}

w.Header().Set("Cache-Control", "immutable")
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 header was removed by mistake?

Looks good otherwise

Copy link
Member

Choose a reason for hiding this comment

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

If you could document the header somewhere that would be nice as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh sorry, I've missed this. Its fixed now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've also updated the README.md

Copy link
Member

Choose a reason for hiding this comment

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

awesome, thank you!

@zimbatm zimbatm merged commit a389312 into numtide:main Mar 4, 2024
2 of 3 checks passed
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.

Expose the executable bit into a HTTP header
2 participants