Re: [Paste] A question on webob.response.EmptyResponse

Top Page
Author: Ian Bicking
Date:  
To: Sergey Schetinin
CC: Paste Users
Subject: Re: [Paste] A question on webob.response.EmptyResponse
On Mon, Jul 26, 2010 at 10:34 PM, Sergey Schetinin <maluke@???> wrote:

> This is basically a question to Ian, but I think it belongs to the
> group.
>
> When webob.Response responds to HEAD it uses
> EmptyResponse(self.app_iter) as a return value. Is that really
> necessary? Why wouldn't this suffice:
>
> iter_close(self.app_iter)
> return ()
>


I don't believe you are supposed to close the app_iter early like this,
though the spec has always been vague, and the particular use cases are
tricky. This was basically a conservative choice because I wasn't really
sure what it should be.


-- 
Ian Bicking  |  http://blog.ianbicking.org

-- 
You received this message because you are subscribed to the Google Groups "Paste Users" group.
To post to this group, send email to paste-users@???.
To unsubscribe from this group, send email to paste-users+unsubscribe@???.
For more options, visit this group at http://groups.google.com/group/paste-users?hl=en.