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?
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?