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

Handle HEAD requests #90

Open
kappsegla opened this issue Feb 11, 2022 · 0 comments
Open

Handle HEAD requests #90

kappsegla opened this issue Feb 11, 2022 · 0 comments

Comments

@kappsegla
Copy link
Contributor

When asking for a file using GET as method in the request we send first a header as response and then we send the actual file as bytes.
When someone uses HEAD as method in a request for a file or resource on the server we should process it as for a GET but with the exception that we only send the header as a response not the actual data.
The header should still contain Content-type and Content-length as for get but without sending the file.

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