don't set params if params is empty

master
Kanezoh 2021-06-09 21:44:11 +09:00
parent c690b05d13
commit bd6160b445
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ module MechanizeCr
private def resolve_parameters(uri, method, params)
case method
when :get
return uri, nil if params.empty?
query = URI::Params.encode(params)
uri.query = query
return uri, nil