Closed dmitryshimkin closed 8 years ago
Currently the server always responds with Content-Type: 'text/html'.
Content-Type: 'text/html'
I changed it to Content-Type: 'application/json' since all responses are JSONs actually.
Content-Type: 'application/json'
JSON
Probably it would be better to set proper mime-type depending on type of response. But not sure how it can be done.
Currently the server always responds with
Content-Type: 'text/html'
.I changed it to
Content-Type: 'application/json'
since all responses areJSON
s actually.Probably it would be better to set proper mime-type depending on type of response. But not sure how it can be done.