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

Stéphane Graber stgraber at ubuntu.com
Mon Jun 15 15:05:29 UTC 2015


On Sat, Jun 13, 2015 at 04:15:23PM -0700, Kevin LaTona wrote:
> 
> 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

Thanks, I've sent a pull-request which fixes that.


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150615/79e7e644/attachment.sig>


More information about the lxc-users mailing list