Re: [twsocket] Fixed small bug in HttpSrv digest auth

2008-11-15 Thread Arno Garrels
Tobias Rapp wrote:
> Hi!
> 
> I have found a small bug in ICS V5 HttpSrv.pas within procedure
> tHttpConnection.Answer401:
> 
>Header := FVersion + ' 401 Unauthorized' + #13#10 +
>  'WWW-Authenticate: ' +
>  //'Digest realm=' + FAuthRealm +// original
>  'Digest realm="' + FAuthRealm + '"' +   // fixed
>  ', qop="'   + AuthString + '"' +
>  ', nonce="' + FAuthDigestServerNonce + '"' +
>  ', opaque="'+ FAuthDigestServerOpaque + '"';
>if FAuthDigestStale then
>Header := Header + ', stale="true"';

Thanks, I just checked in your fix.
svn://svn.overbyte.be/icsv5 or http://svn.overbyte.be:8443/svn/icsv5. 
usercode = ics and password = ics

--
Arno

> 
> I must admit that I don't know which version conforms to the
> standards. It's just the case that in the original code version the
> auth realm is displayed wrong in Mozilla Firefox.  
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Fixed small bug in HttpSrv digest auth

2008-11-13 Thread Tobias Rapp
Hi!

I have found a small bug in ICS V5 HttpSrv.pas within procedure
tHttpConnection.Answer401:

Header := FVersion + ' 401 Unauthorized' + #13#10 +
  'WWW-Authenticate: ' +
  //'Digest realm=' + FAuthRealm +// original
  'Digest realm="' + FAuthRealm + '"' +   // fixed
  ', qop="'   + AuthString + '"' +
  ', nonce="' + FAuthDigestServerNonce + '"' +
  ', opaque="'+ FAuthDigestServerOpaque + '"';
if FAuthDigestStale then
Header := Header + ', stale="true"';

I must admit that I don't know which version conforms to the standards.
It's just the case that in the original code version the auth realm is
displayed wrong in Mozilla Firefox.

Regards,
Tobias

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be