[AWS] Configure AWS to use only S206 with Content-Range and no multipart/byteranges

David SAUVAGE - AdaLabs Ltd david.sauvage at adalabs.com
Wed Oct 12 15:32:56 CEST 2011


Hi,

Le 06/10/2011 17:06, David SAUVAGE - AdaLabs Ltd a écrit :
> The response urllib can't handle is the following :
>
> 28.562  < HTTP/1.1 206 Partial Content
> 28.562  < Date: Thu, 06 Oct 2011 12:51:43 GMT
> < Server: Ada Web Server
> < Content-Type: application/octet-stream
> < Connection: keep-alive
> < Last-Modified: Thu, 06 Oct 2011 09:39:24 GMT
> < Accept-Ranges: bytes
> < Content-Type: multipart/byteranges; boundary=aws_range_separator
>

In the bzr http log, the bzr http python library seems to receive two
Content-Type fields in the HTTP header from the server.

As it is the first one, "Content-Type: application/octet-stream" that is
used by the bzr http python library, it then complain that the
Content-Range is missing.

How could I prevent the "Content-Type: application/octet-stream" to be
sent from AWS if this is the case ?

I am also looking in the python http library to tell him use the other
Content-Type.


Cheers,

-- 

David SAUVAGE

Software Agile Architect, Director
AdaLabs Ltd - Mauritius
http://adalabs.com
+230 428 18 32
skype sauvaged
BRN C10097052
VAT 27035043




More information about the AWS mailing list