Hello: I've got a question about how CXF 2.7.8 prints headers logs I've got a REST webservice deployed in a Tomcat 7.0 server, listening on a secure port (https)
Sometimes my service receives requests like the next one: Address: https://example.com/WS/user1/login Encoding: UTF-8 Http-Method: POST Content-Type: application/json, application/json; charset=UTF-8 Headers: {accept-encoding=[gzip], connection=[Keep-Alive], Content-Length=[230], content-type=[application/json, application/json; charset=UTF-8], host=[example.com], user-agent=[Dalvik/2.1.0 (Linux; U; Android 5.1.1; SM-G531F Build/LMY48B)]} Payload: { ... } Look at Content-Type value and Headers.content-type value: they match. All right And I reject that request caused by content-type is not supported But sometimes my service receives requests like the next one: Address: https://example.com/WS/user2/login Encoding: ISO-8859-1 Http-Method: POST Content-Type: application/json Headers: {accept-encoding=[gzip], connection=[Keep-Alive], Content-Length=[232], content-type=[application/json, application/json; charset=UTF-8], host=[example.com], user-agent=[Dalvik/2.1.0 (Linux; U; Android 6.0.1; SM-G900F Build/MMB29M)]} Payload: { ... } Look at Content-Type value and Headers.content-type value: they don't match !! Why ? Should they be the same value ? In this case, I accept the request Thanks and regards
