1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

When Net::HTTP::Post is being instantiated only the uri.path was being passed (#924)

fixed bug causing webhook not to trigger unless query params were present
هذا الالتزام موجود في:
Mark Rodgers
2019-12-05 09:21:07 -08:00
ملتزم من قبل Adam Cooke
الأصل 7cfbda4426
التزام d067944301

عرض الملف

@@ -15,7 +15,7 @@ module Postal
def self.request(method, url, options = {})
options[:headers] ||= {}
uri = URI.parse(url)
request = method.new(uri.path.length == 0 ? "/" : uri.path)
request = method.new((uri.path.length == 0 ? "/" : uri.path) + (uri.query ? "?" + uri.query : ""))
options[:headers].each { |k,v| request.add_field k, v }
if options[:username] || uri.user