Missing 'Accept' Header
Opened this issue · 1 comments
Das-Ente commented
According to the documentation, the 'Accept' header must be set for all requests.
https://www.kaufland.de/api/v1/?page=rest-api
Required Headers
Each request must contain 4 headers:
Accept - All requests must contain an Accept header set to application/json.
If this is not set, the PATCH "https://www.kaufland.de/api/v1/units/xxxxxxxxxxxx/" call will not result in an HTTP 404, but in an HTTP 405. Also the response is then not a JSON, but an XML.
<html>
<head>
<title>405 Not Allowed</title>
</head>
<body>
<center>
<h1>405 Not Allowed</h1>
</center>
<hr>
<center>nginx</center>
</body>
</html>
Das-Ente commented