mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 06:03:25 +00:00
405 error Method not allowed even if the site works #197
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @naguam on GitHub.
Hello,
So I set up a instance,
The site works well, It's great, but when I used
curl --head,it showed error 405, method not allowed, is it normal ?I thought it could be because of my nginx reverse proxy (miss configuration) but no : i also tested directly on the localhost:8080 (on the vm I run it) and I confirm the error 405 Method not Allowed (even if the site works).
Thank you.
@paolafrancesca commented on GitHub:
@naguam
HEADrequest is not supported on/only on these two path patterns: https://github.com/dutchcoders/transfer.sh/blob/master/server/server.go#L389-L390
@kyodev commented on GitHub:
hi
you can have a clean header with
curl --head -XGET url@naguam commented on GitHub:
Ok thank you for the precision :) (I didn't read all the code, maybe should I 👍 )