paypal / paypalhttp_ruby

MIT License
6 stars 38 forks source link

Hdl 285 paypal sdk header: Fixing Case Sensitivity #11

Closed HDLahlou closed 3 years ago

HDLahlou commented 3 years ago

Internal Change for Ticket 285:

Author: hlahlou

Changes made in Encoder and HttpClient to force the value for Content-Type to lowercase.

Added Unit Tests to ensure that deserialization and execution of HTTP request were case insensitive and could handle Content-Types of different casing (ex: application/json vs application/JSON)

Also updated the license, change log, and version to reflect changes made and to update copyright.

Results of Unit Tests:

Screen Shot 2021-08-25 at 1 17 21 PM

Integration Test Results with Checkout SDK:

Screen Shot 2021-08-30 at 6 40 55 PM