File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/org/apache/hc/client5/http/impl/auth
test/java/org/apache/hc/client5/http/impl/auth Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -471,7 +471,6 @@ private String createDigestResponse(final HttpRequest request) throws Authentica
471471 params .add (new BasicNameValuePair ("qop" , qop == QualityOfProtection .AUTH_INT ? "auth-int" : "auth" ));
472472 params .add (new BasicNameValuePair ("nc" , nc ));
473473 params .add (new BasicNameValuePair ("cnonce" , cnonce ));
474- params .add (new BasicNameValuePair ("rspauth" , hasha2 ));
475474 }
476475 if (algorithm != null ) {
477476 params .add (new BasicNameValuePair ("algorithm" , algorithm ));
Original file line number Diff line number Diff line change @@ -903,7 +903,7 @@ void testDigestAuthenticationWithNonAsciiUsername() throws Exception {
903903 }
904904
905905 @ Test
906- void testRspAuthFieldAndQuoting () throws Exception {
906+ void testRspAuthFieldNotPresentClient () throws Exception {
907907 final ClassicHttpRequest request = new BasicClassicHttpRequest ("POST" , "/" );
908908 final HttpHost host = new HttpHost ("somehost" , 80 );
909909 final CredentialsProvider credentialsProvider = CredentialsProviderBuilder .create ()
@@ -921,7 +921,8 @@ void testRspAuthFieldAndQuoting() throws Exception {
921921
922922 final Map <String , String > table = parseAuthResponse (authResponse );
923923
924- Assertions .assertNotNull (table .get ("rspauth" ));
924+ Assertions .assertNotNull (table );
925+ Assertions .assertNull (table .get ("rspauth" ));
925926 }
926927
927928 @ Test
You can’t perform that action at this time.
0 commit comments