Skip to content

Commit

Permalink
Merge pull request #196 from lupinglade/patch-1
Browse files Browse the repository at this point in the history
Fixed nc value being quoted, this was against spec
  • Loading branch information
greatuserongithub committed Apr 10, 2013
2 parents 926326e + 9209624 commit e983f0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/httparty/net_digest_auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def authorization_header
fields = [
%Q(cnonce="#{@cnonce}"),
%Q(qop="#{@response['qop']}"),
%Q(nc="00000001")
%Q(nc=00000001)
]
fields.each { |field| header << field }
end
Expand Down
2 changes: 1 addition & 1 deletion spec/httparty/net_digest_auth_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def authorization_header
end

it "should set nonce-count" do
authorization_header.should include(%Q(nc="00000001"))
authorization_header.should include(%Q(nc=00000001))
end

it "should set response" do
Expand Down

0 comments on commit e983f0c

Please sign in to comment.