nglviewer / mdsrv

MD trajectory server
http://arose.github.io/mdsrv/
Other
36 stars 10 forks source link

mdsrv REST API responses have default Content-Type header 'text/html' #16

Open ismaelresp opened 7 years ago

ismaelresp commented 7 years ago

The mdsrv REST API commands that do not trigger a file download generate responses with 'text/html' Content-Type (mimetype) header. This content-types does not match the given output.

I recommend adding the following content-types:

This content-type mismatches cause conflicts when the reponse is not direclty handled by the ngl viewer (e.g. intermediate proxies, debuggers, third-party applications, etc.) especially when binary data is processed as text.

arose commented 7 years ago

thanks, I fully agree

arose commented 7 years ago

@j0kaso is this something you could look into?

j0kaso commented 7 years ago

Yupp, I'll look into it.