fixed connection hanging bug for unidentified request methods

Signed-off-by: Burak Emre Kabakcı <emrekabakci@gmail.com>