Skip to content

fix: http head sometimes return 405#47

Open
xgui3783 wants to merge 1 commit into
masterfrom
fix/headNotSupported
Open

fix: http head sometimes return 405#47
xgui3783 wants to merge 1 commit into
masterfrom
fix/headNotSupported

Conversation

@xgui3783

Copy link
Copy Markdown
Collaborator

Some servers return 405 on HTTP HEAD method. This does not necessarily mean that files are missing.

This PR will fall back to GET if HEAD fails with 405, and immediately terminates (via stream=True) when a response is received.

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.

1 participant