]> source.dussan.org Git - jgit.git/commit
Fix WWW-Authenticate auth-scheme comparison 76/1876/2
authorStefan Lay <stefan.lay@sap.com>
Wed, 10 Nov 2010 08:42:51 +0000 (09:42 +0100)
committerStefan Lay <stefan.lay@sap.com>
Wed, 10 Nov 2010 08:42:51 +0000 (09:42 +0100)
commit20a5a34444df017ba2232313a8137d220980883d
treeeed918cfffb017abf081ca6cfdf36e0d8ab77853
parent17b1003ff221a7ab7d8ef749e15e1a753efd6109
Fix WWW-Authenticate auth-scheme comparison

The auth-scheme token (like "Basic" or "Digest") is not specified in a
case sensitive way. RFC2617 (http://tools.ietf.org/html/rfc2617) specifies
in section 1.2 the use of a "case-insensitive token to identify the
authentication scheme". Jetty, for example, uses "basic" as token.

Change-Id: I635a94eb0a741abcb3e68195da6913753bdbd889
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/HttpAuthMethod.java