Fixed a case where logging an HTTP response failed because the stream was non-seekable