hasBody() should return false if Content-Length: 0
hasBody() should return false if Content-Length: 0

Some clients will set Content-Length: 0 when there is no content (and shouldn't be, e.g. on a GET). This can cause other parts of connect to be confused. For instance, if the client also sets Content-Type: application/json, the json middleware will try to parse an empty string and blow up.

Of course, such clients are unhelpful at best, but connect should not blow up.
RoseTHERESA/connect,RickyDan/connect,behind2/connect,senchalabs/connect,liuwei9413/connect,tanveer12332/connect,keenwon/connect,austincitylimits/connect,khirayama/connect,chinazhaghai/connect,llwanghong/connect,davehorton/drachtio,qitianchan/connect,mi2oon/connect,mi2oon/connect,dkfiresky/connect,khalerc/connect,lian774739140/connect,gtomitsuka/connect,wghust/connect