Closed josephmturner closed 1 year ago
Hmm, I was thinking that adding ?noResolve
should always trigger the "Read this as a directory" logic. IMO an error makes sense with that in mind. Is there a benefit to silently ignoring the case where you try to read a file as a directory?
Hmm, I was thinking that adding ?noResolve should always trigger the "Read this as a directory" logic. IMO an error makes sense with that in mind. Is there a benefit to silently ignoring the case where you try to read a file as a directory?
In hyperdrive.el, we never want to resolve to index.html (we always want a directory listing). Currently, for all GET/HEAD requests to URLs ending with "/", we append "?noResolve" before sending out the request.
It's a little bit awkward, but no big deal.
I was thinking it would be slightly less awkward to simply append "?noResolve" to all GET/HEAD requests regardless of whether they end with "/".
sounds good, I will add the fix in
oh wow looks like this hit a bug in the resolve path function. glad you raised the issue!
Current behavior:
HEAD hyper://PUBLIC-KEY/file.txt?noResolve
fails with status500
.Expected behavior:
HEAD hyper://PUBLIC-KEY/file.txt?noResolve
returns the same response asHEAD hyper://PUBLIC-KEY/file.txt
.What is the expected behavior of adding
?noResolve
query string to a file path URL?