fixed connection hanging bug for unidentified request methods

Signed-off-by: Burak Emre Kabakcı <emrekabakci@gmail.com>
Merge pull request #882 from buremba/http-connection-hanging-bug

fixed connection hanging bug for unidentified request methods