Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup properly after hijacking a request #164

Merged
merged 1 commit into from
Jul 20, 2019

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
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