Index: C:/Documents and Settings/Ortwin/My Documents/code/HttpClient-3/src/java/org/apache/commons/httpclient/auth/DigestScheme.java =================================================================== --- C:/Documents and Settings/Ortwin/My Documents/code/HttpClient-3/src/java/org/apache/commons/httpclient/auth/DigestScheme.java (revision 240197) +++ C:/Documents and Settings/Ortwin/My Documents/code/HttpClient-3/src/java/org/apache/commons/httpclient/auth/DigestScheme.java (working copy) @@ -111,7 +111,6 @@ super(); this.complete = false; this.formatter = new ParameterFormatter(); - this.formatter.setAlwaysUseQuotes(true); } /** @@ -491,6 +490,9 @@ if (i > 0) { buffer.append(", "); } + boolean noQuotes = "nc".equals(param.getName()) || + "qop".equals(param.getName()); + this.formatter.setAlwaysUseQuotes(!noQuotes); this.formatter.format(buffer, param); } return buffer.toString();