Ensure that the correct content-type is returned. #18

merged 2 commits into from May 7, 2012


None yet

3 participants


Currently, web browsers such as Chrome throw warnings for each resource which is returned with the wrong content type. Modify the content-types-provided method to inspect the resource and return a best guess at the appropriate mime-type.

@massung @jgnewman

@cmeiklejohn cmeiklejohn Ensure that the correct content-type is returned.
This prevents browsers from complaining about individual resources
coming in with the wrong content type.
@seancribbs seancribbs and 1 other commented on an outdated diff Apr 28, 2012
Index=filename:join([riak_control:priv_dir(),"admin"] ++ Path),
+ Index.
seancribbs Apr 28, 2012

That line is unnecessary, the assignment is unused except as a return value.

cmeiklejohn Apr 28, 2012 Contributor

Removed in 0a50194.

massung commented May 7, 2012


@cmeiklejohn cmeiklejohn merged commit 2638a66 into master May 7, 2012
@seancribbs seancribbs deleted the cm-ensure-content-type branch Apr 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment