Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivation: A recent path introduced support for adding the `Link` HTTP response header, according to RFC 6249. Unfortunately, the code added the Link header for all requests, not just the intended GET and HEAD requests. Additionally, due to peculiarities of how Milton generates PROPFIND results, the `Link` header is added multiple times: once for each subdirectory. This results in the HTTP response headers taking up too much space and dCache failing the request, returning a 500 status code. Modification: Add guard to ensure the `Link` header is only added for GET and HEAD requests, and only if there isn't already a `Link` header. Result: A regression is fixed where PROPFIND requests would fail if the directory contains too many subdirectories. The cut-off point depends on the length of the URL the PROPFIND request targets. Target: master Request: 9.2 Requires-notes: yes Requires-book: no Closes: dCache#7496 Patch: https://rb.dcache.org/r/14201/ Acked-by: Dmitry Litvintsev
- Loading branch information