for-GET / katt

KATT (Klarna API Testing Tool) is an HTTP-based API testing tool for Erlang.
https://github.com/for-GET/katt
Apache License 2.0
119 stars 16 forks source link

Not possible to validate response as json if no content-type in response header #66

Closed tobiiasl closed 3 years ago

tobiiasl commented 6 years ago

Specifying a response content-type in KATT to e.g. "application/foobar.object-v1+json" will:

  1. cause Katt to validate the response as json
  2. check that the response header specifies that content-type.

If the server does not respond with a content-type it is not possible to validate the response as json. This would be nice.