don't set params if params is empty
parent
c690b05d13
commit
bd6160b445
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue