Fix a minor possible memory leak. #1185

Closed
wants to merge 2 commits into
from
Commits on Jul 19, 2012
  1. @zewt

    Fix a minor possible memory leak.

    zewt committed Jul 19, 2012
    If file.Read() throws, then temp wasn't freed.  Fix by reading directly
    into checksum, to avoid direct memory management in the first place.
Commits on Jul 22, 2012
  1. @zewt

    Fix reads from Transfer-Encoding: chunked servers.

    zewt committed Jul 22, 2012
    There's no Content-Length in this mode, so GetLength() returns 0.