Fix typo

Nothing happened because of this typo, the connection just hung. Now it returns a 500 error as expected.
Merge pull request #2 from badboy/patch-2

Fix typo