Re: [XHR] Content-Length header for data: URLs

Sure, what I actually meant is that you'd need to somehow pre-parse the
data URL to extract the exact length before storage. Dunno how
desirable/desired/common this is.


On 20 September 2013 04:58, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 9/19/13 10:51 PM, Julian Aubourg wrote:
>
>> But Content-Length is not the same as the length of the string
>> containing the Data URL.
>>
>
> Sure.  It can also be a simple formula computed from that length, in the
> case of base64-encoded data URLs.
>
> And of course you have to subtract out the length of the parts before ','.
>  None of this is all that hard to do.
>
> -Boris
>

Received on Friday, 20 September 2013 03:10:34 UTC