Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: don't do HEAD request for box on non-HTTP [GH-5477] #6540

Merged
merged 2 commits into from
Nov 19, 2015

Conversation

mitchellh
Copy link
Contributor

Fixes #5477

If the protocol isn't HTTP, we don't do a HEAD request.

@@ -491,6 +491,9 @@ def metadata_url?(url, env)
end
end

# If this isn't HTTP, then don't do the HEAD request
return false if !uri.scheme.downcase.start_with?("http")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we @logger.debug this just to be sure in the future?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a really good idea.

@sethvargo
Copy link
Contributor

LGTM

@mitchellh
Copy link
Contributor Author

Done

mitchellh added a commit that referenced this pull request Nov 19, 2015
core: don't do HEAD request for box on non-HTTP [GH-5477]
@mitchellh mitchellh merged commit 079ee6e into master Nov 19, 2015
@mitchellh mitchellh deleted the b-non-http-head branch November 19, 2015 02:09
@ghost ghost locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Downloading from tftp:// uses HEAD query
2 participants