Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ private String createDigestResponse(final HttpRequest request) throws Authentica
params.add(new BasicNameValuePair("qop", qop == QualityOfProtection.AUTH_INT ? "auth-int" : "auth"));
params.add(new BasicNameValuePair("nc", nc));
params.add(new BasicNameValuePair("cnonce", cnonce));
params.add(new BasicNameValuePair("rspauth", hasha2));
}
if (algorithm != null) {
params.add(new BasicNameValuePair("algorithm", algorithm));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ void testDigestAuthenticationWithNonAsciiUsername() throws Exception {
}

@Test
void testRspAuthFieldAndQuoting() throws Exception {
void testRspAuthFieldNotPresentClient() throws Exception {
final ClassicHttpRequest request = new BasicClassicHttpRequest("POST", "/");
final HttpHost host = new HttpHost("somehost", 80);
final CredentialsProvider credentialsProvider = CredentialsProviderBuilder.create()
Expand All @@ -921,7 +921,8 @@ void testRspAuthFieldAndQuoting() throws Exception {

final Map<String, String> table = parseAuthResponse(authResponse);

Assertions.assertNotNull(table.get("rspauth"));
Assertions.assertNotNull(table);
Assertions.assertNull(table.get("rspauth"));
}

@Test
Expand Down
Loading