Vonage / vonage-ruby-sdk

Vonage REST API client for Ruby. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
https://developer.vonage.com
Apache License 2.0
217 stars 108 forks source link

Adding 'Accept' header to Namespeace#build_request method #218

Closed superchilled closed 2 years ago

superchilled commented 2 years ago

Reason for this PR

A recent change to the SMS API was sending responses with a Content-Type of text/plain unless an Accept header with a value of application/json was sent in the request. Although the change was reverted, it would be prudent to add this header to requests sent from the library.

What this PR does

See https://github.com/Vonage/vonage-ruby-sdk/issues/216 for additional context.