fixed HTTP handling

this was forgotten in 744290b6199d5805d394ab324dbcc9e198490a4f