Closed as not planned
Closed as not planned
Description
Go version
go1.20.6
Output of go env
in your module/workspace:
Regardless of env
What did you do?
Before executing net/http Request.ParseMultipartForm(), execute request = request.WithContext(ctx). The temporary file /tmp/multipart- generated afterwards will not be deleted in response.finishRequest().
What did you see happen?
The temporary file /tmp/multipart- will remain and will not be deleted.
What did you expect to see?
No matter what the order of executing Request.ParseMultipartForm and request = request.WithContext(ctx), finishRequest() can always delete the temporary file: /tmp/multipart-.