diff --git a/core/src/main/kotlin/org/evomaster/core/problem/httpws/auth/AuthUtils.kt b/core/src/main/kotlin/org/evomaster/core/problem/httpws/auth/AuthUtils.kt index 9ab65c621e..cb8afa5e8d 100644 --- a/core/src/main/kotlin/org/evomaster/core/problem/httpws/auth/AuthUtils.kt +++ b/core/src/main/kotlin/org/evomaster/core/problem/httpws/auth/AuthUtils.kt @@ -70,6 +70,7 @@ object AuthUtils { } TokenHandling.ExtractFrom.HEADER -> { val header = response.getHeaderString(data.extractSelector) + response.close() if(header == null || header.isEmpty()){ log.warn("Failed login. No token to extract from header '${data.extractSelector}'") continue @@ -266,4 +267,4 @@ object AuthUtils { } -} \ No newline at end of file +}