Mercurial > stress-tester
changeset 440:76b6252b9e5c
minor
author | Devel 1 |
---|---|
date | Fri, 28 Jul 2017 09:25:06 +0200 |
parents | 83d627ad7e47 |
children | 24d9595a4fe2 |
files | stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilter.java stress-tester/src/main/java/com/passus/st/client/http/filter/HttpDigestAuthLoginFilter.java stress-tester/src/main/java/com/passus/st/client/http/filter/HttpSessionCookieFilter.java |
diffstat | 3 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilter.java Thu Jul 27 16:00:49 2017 +0200 +++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpCsrfFilter.java Fri Jul 28 09:25:06 2017 +0200 @@ -17,7 +17,6 @@ import com.passus.net.http.HttpRequest; import com.passus.net.http.HttpResponse; import com.passus.st.ParametersBag; -import static com.passus.st.client.http.HttpConsts.TAG_SESSION_ID; import com.passus.st.client.http.HttpFlowContext; import com.passus.st.plugin.PluginConstants; import com.passus.st.validation.HeaderNameValidator;
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpDigestAuthLoginFilter.java Thu Jul 27 16:00:49 2017 +0200 +++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpDigestAuthLoginFilter.java Fri Jul 28 09:25:06 2017 +0200 @@ -41,7 +41,7 @@ public static final ByteString QOP_AUTH = ByteString.create("auth"); public static final ByteString QOP_AUTH_INT = ByteString.create("auth-int"); - private static final ByteString DIGETS = ByteString.create("Digest "); + private static final ByteString DIGEST = ByteString.create("Digest "); private final HttpWwwAuthenticateDecoder wwwAuthDecoder = new HttpWwwAuthenticateDecoder(); private final HttpAuthorizationDecoder authDecoder = new HttpAuthorizationDecoder(); @@ -64,7 +64,7 @@ @Override protected void doFilterOutbound(HttpRequest request, HttpResponse resp, HttpFlowContext context) { ByteString headerString = request.getHeaders().get(HttpHeaders.AUTHORIZATION); - if (headerString != null && headerString.startsWith(DIGETS)) { + if (headerString != null && headerString.startsWith(DIGEST)) { HttpAuthorization currReqAuth = authDecoder.decode(headerString); authDecoder.clear();
--- a/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpSessionCookieFilter.java Thu Jul 27 16:00:49 2017 +0200 +++ b/stress-tester/src/main/java/com/passus/st/client/http/filter/HttpSessionCookieFilter.java Fri Jul 28 09:25:06 2017 +0200 @@ -107,6 +107,11 @@ } @Override + public void reset() { + cookiesMap.clear(); + } + + @Override public int filterOutbound(HttpRequest pcapRequest, HttpResponse pcapResponse, HttpFlowContext context) { HttpCookie requestCookie = findSessionCookie(pcapRequest); if (requestCookie != null) {