lib/aws/pa_api.rb in tdiary-5.2.4 vs lib/aws/pa_api.rb in tdiary-5.3.0
- old
+ new
@@ -51,10 +51,10 @@
"Content-Encoding" => "amz-1.0",
"Host" => MARKETS[locale].host,
"X-Amz-Date" => time_stamp,
"X-Amz-Content-Sha256" => OpenSSL::Digest::SHA256.hexdigest(payload),
"Authorization" => authorization,
- "Content-Type" => "application/json; charset=utf-8"
+ "content-type" => "application/json; charset=utf-8"
}
uri = URI("https://#{MARKETS[locale].host}/paapi5/getitems")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
response = http.post(uri.path, payload, headers)