adjusted to formatting API changes in core

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@569832 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Roland Weber 2007-08-26 16:21:17 +00:00
parent 31b18a4bb7
commit 31de8d1dcf
1 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@ import org.apache.http.auth.AUTH;
import org.apache.http.auth.MalformedChallengeException; import org.apache.http.auth.MalformedChallengeException;
import org.apache.http.auth.params.AuthParams; import org.apache.http.auth.params.AuthParams;
import org.apache.http.message.BasicNameValuePair; import org.apache.http.message.BasicNameValuePair;
import org.apache.http.message.BasicHeaderValueFormatter;
import org.apache.http.message.BufferedHeader; import org.apache.http.message.BufferedHeader;
import org.apache.http.util.CharArrayBuffer; import org.apache.http.util.CharArrayBuffer;
import org.apache.http.util.EncodingUtils; import org.apache.http.util.EncodingUtils;
@ -399,7 +400,8 @@ public class DigestScheme extends RFC2617Scheme {
} }
boolean noQuotes = "nc".equals(param.getName()) || boolean noQuotes = "nc".equals(param.getName()) ||
"qop".equals(param.getName()); "qop".equals(param.getName());
BasicNameValuePair.format(buffer, param, !noQuotes); BasicHeaderValueFormatter.DEFAULT
.formatNameValuePair(buffer, param, !noQuotes);
} }
return new BufferedHeader(buffer); return new BufferedHeader(buffer);
} }