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

Adding support for HTTP basic auth #16

Merged
merged 2 commits into from
Jul 31, 2017

Conversation

trumant
Copy link
Contributor

@trumant trumant commented Jul 28, 2017

No description provided.

if @options[:userpwd]
request_options[:userpwd] = @options[:userpwd]
end
request = Typhoeus::Request.new(@url, request_options)
Copy link
Owner

Choose a reason for hiding this comment

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

Would it make sense to simply pass @options to Typhoeus to support all Typhoeus options?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The only reason I did not do so is because :recurse is not an option we'd want to hand to Typhoeus

Copy link
Owner

Choose a reason for hiding this comment

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

Should we delete decurse before passing then and pass the rest? (Blacklist, rather than whitelist?)

@benbalter
Copy link
Owner

Nice! Thanks @trumant! Will work on getting a new release out with this.

@benbalter benbalter merged commit 5975541 into benbalter:master Jul 31, 2017
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