Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@marcospereira
Copy link
Member

Pull Request Checklist

  • Have you checked that both Scala and Java APIs are updated?
  • Have you added tests for any changed functionality?

Purpose

Assets controller was adding a Content-Disposition header when serving files. This is not necessary and also changes the way this was working before. This must be backported.

References

See discussion at gitter channel: https://gitter.im/playframework/playframework?at=5715069c2c9711166432efb1

@@ -455,7 +455,7 @@ class AssetsBuilder(errorHandler: HttpErrorHandler) extends Controller {
val stream = connection.getInputStream
val source = StreamConverters.fromInputStream(() => stream)
// TODO this is a lie - stream.available does not necessarily return the length of the file, to do that we
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment seems incomplete

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@gmethvin gmethvin merged commit 56c3508 into playframework:master Apr 19, 2016
@gmethvin
Copy link
Member

2.5.x: 0179ed6

@justinnichols
Copy link

justinnichols commented Apr 26, 2016

Any idea on a time frame when this will get released in 2.5.x?

@gmethvin
Copy link
Member

@justinnichols 2.5.3 is out now. Making the announcement soon.

@justinnichols
Copy link

Thanks so much, @gmethvin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants