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:
parent
31b18a4bb7
commit
31de8d1dcf
|
@ -43,6 +43,7 @@ import org.apache.http.auth.AUTH;
|
|||
import org.apache.http.auth.MalformedChallengeException;
|
||||
import org.apache.http.auth.params.AuthParams;
|
||||
import org.apache.http.message.BasicNameValuePair;
|
||||
import org.apache.http.message.BasicHeaderValueFormatter;
|
||||
import org.apache.http.message.BufferedHeader;
|
||||
import org.apache.http.util.CharArrayBuffer;
|
||||
import org.apache.http.util.EncodingUtils;
|
||||
|
@ -399,7 +400,8 @@ public class DigestScheme extends RFC2617Scheme {
|
|||
}
|
||||
boolean noQuotes = "nc".equals(param.getName()) ||
|
||||
"qop".equals(param.getName());
|
||||
BasicNameValuePair.format(buffer, param, !noQuotes);
|
||||
BasicHeaderValueFormatter.DEFAULT
|
||||
.formatNameValuePair(buffer, param, !noQuotes);
|
||||
}
|
||||
return new BufferedHeader(buffer);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue