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

Merged
merged 2 commits into from May 7, 2012

Projects

None yet

3 participants

@cmeiklejohn
Contributor

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.
32a6e4a
@seancribbs seancribbs and 1 other commented on an outdated diff Apr 28, 2012
src/admin_gui.erl
Path=wrq:path_tokens(Req),
Index=filename:join([riak_control:priv_dir(),"admin"] ++ Path),
+ Index.
@seancribbs
seancribbs Apr 28, 2012

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

@cmeiklejohn
cmeiklejohn Apr 28, 2012 Contributor

Removed in 0a50194.

@massung
Contributor
massung commented May 7, 2012

+1

@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