Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid copying the whole file into RAM to detect its content type
request.buildHTTP copies the whole files into RAM to detect their content types, but it increases RAM usage if there is a large file. Since http.DetectContentType only considers at most the first 512 bytes of data, we can avoid copying the whole data. Signed-off-by: Junpei Kawamoto <kawamoto.junpei@gmail.com>
- Loading branch information