statusCode and HEAD requests #4

Open
wants to merge 1 commit into
from

Projects

None yet

1 participant

@bog
bog commented Aug 5, 2011

I've modified quip to handle two scenarios it wasn't handling as well as it could:

  1. Since quip didn't set res.statusCode, other middleware such as connect's logger couldn't read the statusCode and therefore reported improper status codes.

  2. Since quip provides a response body for redirections, it needs to prevent writing to the body when dealing with a HEAD request. I've now corrected the middleware to not write if the request is a HEAD request.

@bog bog set res.statusCode so other middleware can get the statusCode properly.
Proxying res.write to prevent writing on HEAD requests in the case of using redirection
854e84e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment