[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] Web server MIME types / content types



Hi Andrew,

Apparently the dispatch function sets the content type, as Len
suggested: https://github.com/mirage/mirage-www/blob/master/src/pages.ml#L121

Luke

On 29 May 2015 at 21:21, Andrew Stuart <andrew.stuart@xxxxxxxxxxxxxxxxxx> wrote:
> Intriguing that http://openmirage.org/ returns content-type: text/html
>
> I wonder what the difference is?
>
> ubuntu@ip-172-30-2-123:~/www.supercoders.com.au$ curl -v -D - 
> http://openmirage.org/
> * Hostname was NOT found in DNS cache
> *   Trying 46.43.42.147...
> * Connected to openmirage.org (46.43.42.147) port 80 (#0)
>> GET / HTTP/1.1
>> User-Agent: curl/7.38.0
>> Host: openmirage.org
>> Accept: */*
>>
> < HTTP/1.1 200 OK
> HTTP/1.1 200 OK
> < content-length: 8520
> content-length: 8520
> < content-type: text/html; charset=UTF-8
> content-type: text/html; charset=UTF-8
>
> <
>
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.