Skip to content

Cleanup properly after hijacking a request#164

Merged
elithrar merged 1 commit intogorilla:masterfrom
mmussomele:hijack-cleanup
Jul 20, 2019
Merged

Cleanup properly after hijacking a request#164
elithrar merged 1 commit intogorilla:masterfrom
mmussomele:hijack-cleanup

Conversation

@mmussomele
Copy link
Contributor

The logging handler hijacks the HTTP request, but does
not properly clean up the files left behind by multipart
forms.

The HTTP library normally does this, but if the connection is hijacked,
all responsibility to clean up is on the hijacker.

Summary of Changes

  1. Properly clean up multipart form disk artifacts after hijacking a connection.

The logging handler hijacks the HTTP request, but does not properly
clean up the files left behind by multipart forms.

The HTTP library normally does this, but if the connection is hijacked,
all responsibility to clean up is on the hijacker.
@elithrar elithrar self-assigned this Jul 20, 2019
@elithrar elithrar self-requested a review July 20, 2019 14:50
@elithrar
Copy link
Contributor

Great catch - thanks @mmussomele

@elithrar elithrar merged commit 941e2d8 into gorilla:master Jul 20, 2019
@mmussomele mmussomele deleted the hijack-cleanup branch July 20, 2019 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants