Skip to content

Commit dfdba32

Browse files
author
Chris Wiechmann
committed
To avoid confusion, log Content-Type header missing on level DATA
1 parent 04d55df commit dfdba32

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/com/axway/apim/openapi/validator

1 file changed

+2
-1
lines changed

src/main/java/com/axway/apim/openapi/validator/Utils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ public static Collection<String> getHeaderValues(HeaderSet headers, String name)
8585
HeaderEntry headerValues = headers.getHeaderEntry(name);
8686
if(headerValues==null) {
8787
if(name.toLowerCase().equals("content-type")) {
88-
traceMessage("Header: Content-Type not found. Defaulting to application/json", TraceLevel.DEBUG);
88+
// For any reason, the API-Gateway at runtime is removing the Content-Type header from the attribute http.headers
89+
traceMessage("Header: Content-Type not found. Defaulting to application/json.", TraceLevel.DATA);
8990
result.add("application/json");
9091
return result;
9192
} else {

0 commit comments

Comments
 (0)