(Hopefully) fix an assert failure in httpinput.cpp.