josephg/ShareJS — pull request #65 by dcolens (2012-02-09 12:41:18+00:00)
Title: adding code to handle HEAD requests as these should not return a body

The issue is that a HEAD to check if a document exists causes a "This type of response MUST NOT have a body. Ignoring data passed to end()." error. Which can quickly fill your logs if there are many such requests.

The proposed fix checks if the method is "HEAD" before sending a response. There might be more elegant ways to fix it, did not think of one straight away.

Did