Proposed fix for https://github.com/github/gollum/issues/96
(statically hosted content in the images/ folder returns 404s) (the problem was all content in javascript, css, and images folders was hard-coded to return 404s)
This commit is contained in:
@@ -282,10 +282,6 @@ module Precious
|
|||||||
mustache :compare
|
mustache :compare
|
||||||
end
|
end
|
||||||
|
|
||||||
get %r{^/(javascript|css|images)} do
|
|
||||||
halt 404
|
|
||||||
end
|
|
||||||
|
|
||||||
get %r{/(.+?)/([0-9a-f]{40})} do
|
get %r{/(.+?)/([0-9a-f]{40})} do
|
||||||
file_path = params[:captures][0]
|
file_path = params[:captures][0]
|
||||||
version = params[:captures][1]
|
version = params[:captures][1]
|
||||||
|
|||||||
Reference in New Issue
Block a user