[lxc-users] LXD server's HTTP header mime type appears to be incorrect

Kevin LaTona lists at studiosola.com
Sat Jun 13 23:15:23 UTC 2015


Typically when a JSON object is being returned it should be set as "Content-Type: application/json" and not set to text/plain as some client code may flag it as an error even though one can still read it.


('HTTP/1.0 200 OK\r\nDate: Sat, 13 Jun 2015 23:00:34 GMT\r\nContent-Length: 121\r\nContent-Type: text/plain; charset=utf-8\r\n\r\n', {u'status': u'Success', u'status_code': 200, u'type': u'sync', u'metadata': {u'status': u'STOPPED', u'status_code': 1, u'init': 0, u'ips': None}})


http://www.iana.org/assignments/media-types/media-types.xhtml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150613/c55eedf5/attachment.html>


More information about the lxc-users mailing list