dmitrisweb / raml-mocker-server

Node module to run server mocking API described in RAML files
MIT License
17 stars 9 forks source link

Add Content-Type: application/json header to response #6

Closed dmitryshimkin closed 8 years ago

dmitryshimkin commented 8 years ago

Currently the server always responds with Content-Type: 'text/html'.

I changed it to Content-Type: 'application/json' since all responses are JSONs actually.

Probably it would be better to set proper mime-type depending on type of response. But not sure how it can be done.