closes #109
This commit is contained in:
parent
aace290cea
commit
0df1a7cc28
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue