I want to set content-type of Fake Request (Play 2.1-RC2). Following code doesn't work (an action receives application/octet-stream instead of application/pdf)
route(FakeRequest(POST,
controllers.routes.FilesController.filesEndpointPost().url,
FakeHeaders(Seq(CONTENT_TYPE->Seq("application/pdf"))),
AnyContentAsRaw(RawBuffer(1000,"brokenpdf".getBytes))
)
).get