Fixed another small bug in http lib