Skip to content

Commit fb00ea5

Browse files
author
Chris Wiechmann
committed
Fixes #67 - CSRF-Token handling fixed according to the specification.
1 parent 9edfb22 commit fb00ea5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/apim-adapter/src/main/java/com/axway/apim/adapter/APIManagerAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public static User getCurrentUser(boolean useAdminClient) throws AppException {
309309

310310
private static void getCsrfToken(HttpResponse response, boolean useAdminClient) throws AppException {
311311
for (Header header : response.getAllHeaders()) {
312-
if(header.getName().equals("CSRF-Token")) {
312+
if(header.getName().equalsIgnoreCase("csrf-token")) {
313313
APIMHttpClient.getInstance(useAdminClient).setCsrfToken(header.getValue());
314314
break;
315315
}

0 commit comments

Comments
 (0)