I am in the process of upgrading an application from 2.5 to 2.6.12. Some of our api requests are failing and I have tracked it down to the presence of a “Content-Type: application/json” header on a GET request with an empty body. The body of the response contains:
“message”: “Invalid Json: No content to map due to end-of-input\n at [Source: akka.util.ByteIterator$ByteArrayIterator$$anon$1@2c879642; line: 1, column: 0]”
This didn’t happen with 2.5 so I’m assuming that this is to do with the shift to Akka http. I know that technically the request should not have the content-type header, as there is no body, but it’s common for clients to include it on api requests and I was wondering if there is any way to relax this check?