On Mon, Mar 23, 2009 at 11:04:45PM -0600, Scott Scriven wrote:
* Scott Scriven <dillo-dev@toykeeper.net> wrote:
The first bad revision is: changeset: 491:96a14e974cfb
Some extra details... when I enable the MSG() call, this is what I get:
r490: Query: {POST /paste/paste.php HTTP/1.1\x0D Connection: close\x0D Accept-Charset: utf-8,*;q=0.8\x0D Accept-Encoding: gzip\x0D Host: rafb.net\x0D Referer: http://rafb.net/\x0D User-Agent: Dillo/2.0\x0D Content-Length: 53\x0D Content-Type: application/x-www-form-urlencoded\x0D Cookie2: $Version="1"\x0D Cookie: uid=foo; $Path=/paste/; $Domain=rafb.net\x0D \x0D lang=C%2B%2B&nick=foo&desc=r490+works&text=r490+works}
r491: Query: {POST /paste/paste.php HTTP/1.1\x0D Connection: close\x0D Accept-Charset: utf-8,*;q=0.8\x0D Accept-Encoding: gzip\x0D Host: rafb.net\x0D Referer: http://rafb.net/\x0D User-Agent: Dillo/2.0\x0D Content-Length: 47966194761781\x0D Content-Type: application/x-www-form-urlencoded\x0D Cookie2: $Version="1"\x0D Cookie: uid=foo; $Path=/paste/; $Domain=rafb.net\x0D \x0D lang=C%2B%2B&nick=foo&desc=r491+fails&text=r491+fails}
So, it looks like the content-length is definitely the issue. I just don't see how it's getting changed.
Skimming the code it looks like the cast to long for int is the way to go. If a: - URL_DATA(url)->len, content_type->str, + (long)URL_DATA(url)->len, content_type->str, solves it. I'd commit it and let the explanation come after the patch. -- Cheers Jorge.-