deal with some streams and http quirks
swallow some errors as if they were end-of-stream