Project

General

Profile

Bug #811

HEAD request returns the whole page (like a GET request) and not only headers.

Added by Niek Bergman almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Niek Bergman
Category:
-
Target version:
Start date:
2012-05-10
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:

Description

Doing a HEAD request on a µWeb served page gives back a full page (as if the request were a GET request), and not only the headers of that page.
RFC2616 specifies "The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response"

Associated revisions

Revision 222:5ca12ee8c3c0 (diff)
Added by Elmer de Looff almost 12 years ago

Reduced Apache mock code and simplified return from uweb.Handler. Fixed request module to only actually send data for requests other than HEAD. This resolves #811.

History

#1 Updated by Elmer de Looff almost 12 years ago

  • Assignee set to Elmer de Looff
  • Target version set to µWeb alpha release
  • Estimated time set to 1.00 h

Needs fixing before public release.

#2 Updated by Elmer de Looff almost 12 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 70

Applied in changeset 5ca12ee8c3c0.

#3 Updated by Elmer de Looff almost 12 years ago

  • Assignee changed from Elmer de Looff to Niek Bergman

Niek,

Please confirm this works for you as well.

#4 Updated by Niek Bergman almost 12 years ago

Confirmed to be working with latest µWeb -- only headers get returned currently like they should.

#5 Updated by Elmer de Looff almost 12 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 70 to 100

Also available in: Atom PDF