Open tsbonev opened 5 years ago
Solution: Set content-type is required in every request as of 1.1.2
How to set content type as required ?!
@kldMohammed You add
addHeader(HttpHeaders.ContentType, ContentType.Application.Json.toString())
inside the handleRequest clause.
Currently, ktor 1.1.2 is unusable as it breaks the application. Possible bugs include a wrong content/type as the NPE is thrown with a 415 status. Watch (https://github.com/ktorio/ktor/issues/925) for possible fixes.