diff --git a/lib/httparty/net_digest_auth.rb b/lib/httparty/net_digest_auth.rb index 6e262d03..b4a64acc 100644 --- a/lib/httparty/net_digest_auth.rb +++ b/lib/httparty/net_digest_auth.rb @@ -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 diff --git a/spec/httparty/net_digest_auth_spec.rb b/spec/httparty/net_digest_auth_spec.rb index 8b7a4d91..6b6605a2 100644 --- a/spec/httparty/net_digest_auth_spec.rb +++ b/spec/httparty/net_digest_auth_spec.rb @@ -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