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

View file

@ -18,11 +18,13 @@ module Middleman
begin
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
Middleman::Builder.shared_rack.get(request_path.gsub(/\s/, "%20"))
Middleman::Builder.shared_rack.last_response.body
end
response.body
end if response.status == 200
rescue
end
end