Raise a catchable error when headers['content-type'] is missing. While reviewing the code, I split the Location header response to exit earlier since the content-type header is not required on that code path. The next part will do the usual checks but also verify we have a content-type header. If not, we raise a RetsContentTypeError that contains the response and headers for easier debugging.
Raise a catchable error when
headers['content-type']
is missing. While reviewing the code, I split theLocation
header response to exit earlier since thecontent-type
header is not required on that code path. The next part will do the usual checks but also verify we have acontent-type
header. If not, we raise aRetsContentTypeError
that contains the response and headers for easier debugging.