criticalmaps / criticalmaps-api

🗄️
16 stars 6 forks source link

asure issue from legacy code doesnt show up in new code #1

Closed stephanlindauer closed 6 years ago

stephanlindauer commented 8 years ago

moved over from https://github.com/criticalmaps/criticalmaps-web/issues/1

The JSON response from the API does not return the correct content type:

$ curl -s -D - http://api.criticalmaps.net/twitter/get.php

HTTP/1.1 200 OK
Date: Sun, 04 Oct 2015 22:27:23 GMT
Server: Apache
X-Powered-By: PHP/5.4.44
Transfer-Encoding: chunked
Content-Type: text/html

It should be Content-Type: application/json;charset=utf-8 instead.

stephanlindauer commented 6 years ago
curl -I -s https://api.criticalmaps.net/twitter/ | grep Content-Type
Content-Type: application/json; charset=utf-8

-> done