This commit is contained in:
Thomas Reynolds 2011-08-30 14:09:13 -07:00
parent aace290cea
commit 0df1a7cc28

View file

@ -19,10 +19,12 @@ module Middleman
begin begin
destination, request_page = SHARED_SERVER.reroute_builder(destination, request_path) destination, request_page = SHARED_SERVER.reroute_builder(destination, request_path)
request_path.gsub!(/\s/, "%20")
response = Middleman::Builder.shared_rack.get(request_path)
create_file destination, nil, config do create_file destination, nil, config do
Middleman::Builder.shared_rack.get(request_path.gsub(/\s/, "%20")) response.body
Middleman::Builder.shared_rack.last_response.body end if response.status == 200
end
rescue rescue
end end
end end