On Jan 29, 2008, at 11:39 AM, Juergen Brendel wrote:

>
> Hello!
>
> In some applications a POST request may arrive without a content- 
> length.
> It appears as if the Paste WSGI server closes the input socket in  
> those
> cases right away.
>
> In some other frameworks they consider this a bug. For example here:
> http://code.djangoproject.com/ticket/3057
>
> Would it be ok to change that behavior in Paste as well?
>

The Paste server only advertises itself as HTTP 1.0 compliant. It's  
doing what it's supposed to do according to

RFC 1945 Section 8.3:

  A valid Content-Length is required on all HTTP/1.0 POST requests. An
    HTTP/1.0 server should respond with a 400 (bad request) message  
if it
    cannot determine the length of the request message's content.

IIRC the only time HTTP 1.1 will allow you to omit Content-Length if  
the POST is chunked.

Since Paste is only 1.0, I'd say this is a bug with the javascript  
library. Why is it POSTing with no body in the first place?

--
Philip Jenvey



_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to