[AWS] AWS.Server.Push with Chunked HTML?

Dmitriy Anisimkov anisimkov at ada-ru.org
Sun Aug 7 17:03:49 CEST 2011


Ok. It's clear enought now. It is really now way to set COntent-Type for 
all server-push stream now in
chunked encoding.
I'll try to use Init_Content_Type parameter for server-push header in 
chunked encoding.

On 08/07/2011 11:47 AM, Joseph Montanez wrote:
> Thanks for the response.
>
> When the client, the web browser, gets a response from the server
> (aws) from a push response it is as so:
>
> HTTP/1.1 200 OK
> Server: AWS (Ada Web Server) v2.7.0w
> Connection: Close
> Transfer-Encoding: chunked
>
> Its missing the Content-Type: text/html used in the Send_To
> (Content_Type =>  "text/html") function. Its not really a big deal
> since most web browsers will read the first part of the chuck to
> figure out the content type. However if the first chuck doesn't have
> any html, it will treat it as text/plain. I've already worked around
> this issue so its really moot, just thought I would point it out.
>
> On Sat, Aug 6, 2011 at 4:23 AM, Dmitriy Anisimkov<anisimkov at ada-ru.org>  wrote:
>> On 08/05/2011 09:36 AM, Joseph Montanez wrote:
>>> I used the demos/ws.adb example provided. When I changed the mime to
>>> Chunked, and left the plain/text as the content type, it continued to
>>> work. However when I change the content type to text/html, the request
>>> never returns anything and just keeps loading and loading. Would this
>>> be expected behaviour?
>>>
>>> https://gist.github.com/1126820




More information about the AWS mailing list