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

Make curl_opt local variable so it does not leak between requests #82

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

komapa
Copy link

@komapa komapa commented Mar 21, 2018

Fixing the scope of curl_opt so that it does not leak between requests. Before this fix, if you issue a HEAD and then a GET, you are still getting the -I parameter and causes the GET to be treated as a HEAD.

This includes the fixes from #80 and will wait for that to get merged (soon?) and then rebase mine.

@@ -143,7 +143,7 @@ HELP
[[ $# -gt 0 ]] && shift
fi

local -a all_opts curlopt_cmd
local -a all_opts curl_opt curlopt_cmd
Copy link
Author

Choose a reason for hiding this comment

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

This is the relevant part

@komapa
Copy link
Author

komapa commented Nov 8, 2018

Any chance to get this merged?

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.

2 participants