yeller / clojure-miniprofiler

a simple but effective profiler for clojure web applications
Eclipse Public License 1.0
115 stars 9 forks source link

html code injections breaks url-response #6

Open ordnungswidrig opened 9 years ago

ordnungswidrig commented 9 years ago

the mini profiler code is injected when the response content-type is HTML regardless off the type of the body. If the body is URL created with url-response it will be converted to a String. This breaks the url-response on actually returns the name of the file instead of the content.

tcrayford commented 9 years ago

Hi!

Seems like a simple if (string? body) kinda check would fix this. Would that work for you? I can make a patch and a release pretty soon if so.