asyrjasalo / RESTinstance

Robot Framework library for RESTful JSON APIs
https://pypi.org/project/RESTinstance
GNU Lesser General Public License v3.0
205 stars 84 forks source link

Missing content-type in response fails test #90

Closed wigledejong closed 3 years ago

wigledejong commented 4 years ago

When sending a request, in my case a post request, to a rest service my tests fails.

After debugging I found that the rest service has no content-type in the response header. The code is excepting that response.header["Content-Type"] is present so the tests fails with KeyError: 'content-type'

The code responsible for this is on row nummer 1334 of keywords.py.

Could this be fixed?

asimell commented 3 years ago

Is this still an issue?

Line 1334 doesn't seem to match the root cause anymore.

wigledejong commented 3 years ago

Issue could be closed. It is not relevant for us anymore.