Fixed a couple of bugs in http module