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

support HEAD method for html output #424

Merged
merged 2 commits into from
Aug 24, 2022
Merged

support HEAD method for html output #424

merged 2 commits into from
Aug 24, 2022

Conversation

peterstadler
Copy link
Member

as documented in issue #422, a HEAD request would always return an error 400. This was due to request:get-data()

let $content := request:get-data()

returning an empty-sequence for HEAD requests, causing templates:apply()
templates:apply($content, $lookup, $model, $config)
to fail.

The remedy is to propagate the HEAD method to view-html.xql and have a dedicated conditional clause there.

@peterstadler peterstadler linked an issue Aug 24, 2022 that may be closed by this pull request
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.

support HTTP HEAD request
1 participant