1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Further tweaks that expose another bug - ignore with proxies leads to Not Found errors. Same issue as #302.

This commit is contained in:
Ben Hollis 2012-03-11 23:09:43 -07:00
parent 9555266ac1
commit 6edefe3c68

View file

@ -14,16 +14,16 @@ page "target_ignore3.html", :proxy => "should_be_ignored7.html", :ignore => true
page "/target_ignore4.html", :proxy => "should_be_ignored8.html", :ignore => true page "/target_ignore4.html", :proxy => "should_be_ignored8.html", :ignore => true
%w(one two).each do |num| %w(one two).each do |num|
page "/fake/#{num}.html", :proxy => "/real/index.html" do page "/fake/#{num}.html", :proxy => "/real/index.html", :ignore => true do
@num = num @num = num
end end
page "fake2/#{num}.html", :proxy => "/real/index.html" do page "fake2/#{num}.html", :proxy => "/real/index.html", :ignore => true do
@num = num @num = num
end end
page "fake3/#{num}.html", :proxy => "real/index.html" do page "fake3/#{num}.html", :proxy => "real/index.html", :ignore => true do
@num = num @num = num
end end
page "/fake4/#{num}.html", :proxy => "real/index.html" do page "/fake4/#{num}.html", :proxy => "real/index.html", :ignore => true do
@num = num @num = num
end end
end end
@ -46,4 +46,4 @@ end
page "fake4/*" do page "fake4/*" do
@glob_var = "I am four glob" @glob_var = "I am four glob"
end end