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

set Content-Length on static file responses #102

Merged
merged 1 commit into from Jan 24, 2014
Merged

set Content-Length on static file responses #102

merged 1 commit into from Jan 24, 2014

Conversation

@zuercher
Copy link

@zuercher zuercher commented Jan 24, 2014

I also removed the extraneous call to InputStream.read -- IOUtils.toByteArray will already have consumed the entire InputStream. Also, if there was anything left, the read call would pave over the start of the byte array.

capotej added a commit that referenced this pull request Jan 24, 2014
set Content-Length on static file responses
@capotej capotej merged commit 43b244a into twitter:master Jan 24, 2014
1 check passed
1 check passed
default The Travis CI build passed
Details
@capotej
Copy link
Contributor

@capotej capotej commented Jan 24, 2014

Thanks!

cacoco pushed a commit that referenced this pull request May 13, 2015
set Content-Length on static file responses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants