Skip to content
Snippets Groups Projects
Commit fda5a4b853ab authored by Jörg Sonnenberger's avatar Jörg Sonnenberger
Browse files

hgweb: skip body creation of HEAD for most requests

The body is thrown away anyway, so this just wastes a lot of CPU time.
In the case of /archive/, this skips manifest processing and the actual
file archiving, resulting in a huge difference.

The most tricky part here is skipping the Content-Length creation as it
would indicate the output size for the corresponding GET request.
parent e0c0545e2e55
No related branches found
No related tags found
2 merge requests!485branching: merge default into stable,!356hgweb: skip body creation of HEAD requests for /archive/
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment