Hi Ian,
sorry, for letting this lying around for so long.
On Fri, Nov 21, 2014 at 2:13 PM, Ian Phillips <
ian.ph...@gmail.com> wrote:
> Is there a way I can override the default mime type or do I need to
> explicitly set the content type and disposition headers each time?
As you have seen, you cannot register a custom mime type if the
extension was already taken. However, for the
`FileAndResourceDirectives` you can specify an implicit
`ContentTypeResolver` to guess an arbitrary content type from a file
name.
> A related question: is it worth opening an issue/submitting a patch to
> spray-routing to change the default mime type for XLS files?
Yes, that would definitely be helpful if you can back the proposal
with any kind reference document which acknowledges what the current
default mime type for xls should be.
--
Johannes
-----------------------------------------------
Johannes Rudolph
http://virtual-void.net