resolve uri path

master
Kanezoh 2021-06-12 23:10:56 +09:00
parent 63bb01a67e
commit 24149b3d0c
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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