servalproject / serval-dna

The Serval Project's core daemon that implements Distributed Numbering Architecture (DNA), MDP, VoMP, Rhizome, MeshMS, etc.
http://servalproject.org
Other
170 stars 81 forks source link

Set 'charset' parameter in http responses #142

Closed CryptoCopter closed 4 years ago

CryptoCopter commented 6 years ago

Since the REST-API resonses utilise utf-8 encoding it is essential to set the charset parameter of the content-type, since if none is provided RFC2616 compliant applications (such as for example python's requests library) will assume ISO-8859-1 encoding, which may lead to erroneous decoding.

CryptoCopter commented 4 years ago

Well, I guess this is never going to happen...