resolve uri path
This commit is contained in:
parent
63bb01a67e
commit
24149b3d0c
@ -82,6 +82,7 @@ class MechanizeCr::Form
|
||||
end
|
||||
successful_controls.each do |ctrl|
|
||||
value = ctrl.query_value
|
||||
next if value[0] == ""
|
||||
query.push(value)
|
||||
end
|
||||
query
|
||||
|
@ -93,6 +93,7 @@ module MechanizeCr
|
||||
referer_uri = current_page.uri
|
||||
host = referer_uri.host
|
||||
scheme = referer_uri.scheme
|
||||
uri = "/" + uri unless uri[0] == '/'
|
||||
new_uri = URI.new(scheme: scheme, host: host, path: uri)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user