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

Return 404 HEAD response by default #7

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Return 404 HEAD response by default #7

merged 1 commit into from
Dec 3, 2024

Conversation

liveh2o
Copy link
Owner

@liveh2o liveh2o commented Dec 3, 2024

Update the Allow middleware to return a 404 HEAD response (with empty headers and body), and add config options for :content, :content_type, and :status. If :content is nil (the default), no headers will be returned. Otherwise, a content-type header will be added. If :content_type is nil (the default), text/plain will be used.

With this change, :message is no longer needed and has been removed (use :content instead).

Update the Allow middleware to return a 404 HEAD response (with empty
headers and body), and add config options for :content, :content_type,
and :status. If :content is nil (the default), no headers will be
returned. Otherwise, a content-type header will be added. If
:content_type is nil (the default), "text/plain" will be used.

With this change, :message is no longer needed and has been removed (use
:content instead).
@liveh2o liveh2o merged commit 92e78c4 into main Dec 3, 2024
5 checks passed
@liveh2o liveh2o deleted the head_response branch December 3, 2024 05: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.

1 participant