We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a768620 commit f3d8bb7Copy full SHA for f3d8bb7
2 files changed
lib/stagehand/internal/util.rb
@@ -272,7 +272,12 @@ class << self
272
#
273
# @return [Hash{String=>Array<String>}]
274
def decode_query(query)
275
- CGI.parse(query.to_s)
+ return {} if query.nil? || query.empty?
276
+
277
+ # Use URI.decode_www_form for Ruby 3.2+ and 4.0+ compatibility
278
+ URI.decode_www_form(query.to_s).each_with_object({}) do |(key, value), hash|
279
+ (hash[key] ||= []) << value
280
+ end
281
end
282
283
# @api private
lib/stagehand/resources/sessions.rb
@@ -140,6 +140,7 @@ def end_(id, params = {})
140
x_sent_at: "x-sent-at",
141
x_stream_response: "x-stream-response"
142
),
143
+ body: {},
144
model: Stagehand::Models::SessionEndResponse,
145
options: options
146
)
0 commit comments