[Twisted-Python] Re: [Twisted-commits] CVS: Twisted/twisted/web server.py,1.22,1.23
glyph at twistedmatrix.com
Thu Nov 15 18:09:07 EST 2001
Hmm, probably, since the lambda won't be serializeable. Is this really
even the right place to support HEAD? I mean, dynamic resources can be
responsible for it themselves, but static.File seems the first obvious
place to do this.
On Thu, 2001-11-15 at 10:06, Itamar Shtull-Trauring wrote:
> Itamar Shtull-Trauring wrote:
> > +
> > + # if this is a "HEAD" request, we shouldn't return any data
> > + if self.method == "HEAD":
> > + self.write = lambda data: None
> > +
> I just thought of this - is this gonna break spreadable web servers?
______ you are in a maze of twisted little applications, all
| |_\ remarkably consistent.
| | -- glyph lefkowitz, glyph @ twisted matrix . com
More information about the Twisted-Python