<div dir="ltr">Can you submit a patch to fix the issue?<div><br></div><div>Thanks,</div><div>Hans</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/5 Chaitanya Gupta <span dir="ltr"><<a href="mailto:mail@chaitanyagupta.com" target="_blank">mail@chaitanyagupta.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The radix used to print the value of the Content-Length header in<br>
reply is affected by the value set for *PRINT-BASE* in my SLIME REPL.<br>
This should not happen; Content-Length should always be in base 10 I<br>
believe.<br>
<br>
Here's a minimal test case:<br>
<br>
(hunchentoot:define-easy-handler (content-length-test :uri<br>
"/content-length-test")<br>
()<br>
"Foo Bar Baz")<br>
<br>
When *PRINT-BASE* is 10,<br>
<br>
$ curl -v <a href="http://localhost:4242/content-length-test" target="_blank">http://localhost:4242/content-length-test</a><br>
* About to connect() to localhost port 4242 (#0)<br>
...snipped...<br>
< HTTP/1.1 200 OK<br>
< Content-Length: 11<br>
...snipped...<br>
* Connection #0 to host localhost left intact<br>
Foo Bar Baz<br>
<br>
When *PRINT-BASE* is 16,<br>
<br>
$ curl -v <a href="http://localhost:4242/content-length-test" target="_blank">http://localhost:4242/content-length-test</a><br>
* About to connect() to localhost port 4242 (#0)<br>
...snipped...<br>
< HTTP/1.1 200 OK<br>
< Content-Length: B<br>
...snipped...<br>
* Excess found in a non pipelined read: excess = 11 url =<br>
/content-length-test (zero-length body)<br>
* Connection #0 to host localhost left intact<br>
<br>
I am running Hunchentoot 1.2.19 on SBCL 1.1.4 on OS X Mountain Lion.<br>
<span class="HOEnZb"><font color="#888888"><br>
Chaitanya<br>
<br>
</font></span></blockquote></div><br></div>