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

Dmitriy Anisimkov anisimkov at ada-ru.org
Mon Aug 8 08:37:07 CEST 2011


I made a fix locally, but could not commit. Looks like GIT server is not 
available now.
I'll make a commit soon.
Meanwhile, The modification patch is in the attachment.


On 08/07/2011 10:03 PM, Dmitriy Anisimkov wrote:
> 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
>
> _______________________________________________
> AWS mailing list
> AWS at lists.adacore.com
> /no-more-mailman.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Minor-reformat.patch
Type: text/x-patch
Size: 1092 bytes
Desc: not available
Url : /pipermail/aws/attachments/20110808/dabb042b/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Able-to-set-Content-Type-header-for-server-push-kind.patch
Type: text/x-patch
Size: 8033 bytes
Desc: not available
Url : /pipermail/aws/attachments/20110808/dabb042b/attachment-0001.bin 


More information about the AWS mailing list