You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the easiest way to handle this is to subclass WhiteNoise and use the add_extra_headers method which is explicitly provided to cope with these kinds of edge cases. The code would look something like this (untested):
Apple's
apple-app-site-association
file must be served with theapplication/pkc7-mime
content type (see: https://developer.apple.com/library/ios/documentation/Security/Reference/SharedWebCredentialsRef/), but Whitenoise is serving it withapplication/octet-stream
, because the file has no extension and as suchmimetypes
determines it should provide the defaultoctet-stream
.Would it be feasible to have some sort of file -> content type mapping which we could use whenever you would like to override the
mimetypes
library.The text was updated successfully, but these errors were encountered: