1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Revert "Use method="post"."

This reverts commit 3f2e0288ca.
This commit is contained in:
Jo Liss 2012-01-12 18:29:57 +01:00
parent 58999f5f9f
commit 0209a2c721
2 changed files with 2 additions and 6 deletions

View file

@ -40,10 +40,6 @@ class TestApp < Sinatra::Base
"Current host is #{request.scheme}://#{request.host}:#{request.port}"
end
post '/host' do
"Current host is #{request.scheme}://#{request.host}:#{request.port}"
end
get '/redirect/:times/times' do
times = params[:times].to_i
if times.zero?

View file

@ -3,10 +3,10 @@
<a href="<%= params[:absolute_host] %>/host">Absolute Host</a>
</p>
<form action="/host" method="post">
<form action="/host">
<p><input type="submit" value="Relative Host"/></p>
</form>
<form action="<%= params[:absolute_host] %>/host" method="post">
<form action="<%= params[:absolute_host] %>/host">
<p><input type="submit" value="Absolute Host"/></p>
</form>