smartystreets / smartystreets-dotnet-sdk

The official client libraries for accessing SmartyStreets APIs from .Net (C# and CLR-based languages)
https://smartystreets.com/docs/sdk/dotnet
Apache License 2.0
22 stars 20 forks source link

Content Type on Batch Zip Code Send #31

Closed stlbluz closed 1 year ago

stlbluz commented 2 years ago

An exception is generated when a .NET Framework project accesses the libraries and attempts to send a batch of zip codes for lookup. The content type is set in the headers and not set on the Request object.

I added a project that will expose the exception for testing purposes. It was committed separately so that it can be removed if not needed going forward.

DuncanBeutler commented 2 years ago

As a quick fix, the necessary changes have been made to set the content type directly on the request rather than the header. The remainder of the submitted code will take some more time to review. Thank you for your contribution, let us know if the issue persists with those changes.