Skip to content

Commit

Permalink
Merge pull request #5 from catwell/master
Browse files Browse the repository at this point in the history
fix digest authentication issue
  • Loading branch information
jmettraux committed Jul 19, 2013
2 parents b98ae0d + dce6ee1 commit 878c3e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -42,7 +42,7 @@ desc %{
task :build do

sh "gem build #{GEMSPEC_FILE}"
sh "mkdir pkg" rescue nil
sh "mkdir -p pkg" rescue nil
sh "mv #{GEMSPEC.name}-#{GEMSPEC.version}.gem pkg/"
end

Expand Down
4 changes: 2 additions & 2 deletions lib/rufus/verbs/digest.rb
Expand Up @@ -48,8 +48,8 @@ def digest_auth (req, opts)
@cnonce ||= generate_cnonce
@nonce_count ||= 0

mention_digest_auth(req, opts) \
and return
# mention_digest_auth(req, opts) \
# and return

mention_digest_auth(req, opts) \
if request_challenge(req, opts)
Expand Down
2 changes: 1 addition & 1 deletion lib/rufus/verbs/endpoint.rb
Expand Up @@ -526,7 +526,7 @@ def add_payload (req, opts, &block)
if d
req.body = d
elsif fd
sep = opts[:fd_sep] #|| nil
sep = opts[:fd_sep] || '&'
req.set_form_data fd, sep
elsif block
req.body = block.call req
Expand Down

0 comments on commit 878c3e3

Please sign in to comment.