xinsnake / go-http-digest-auth-client

Golang Http Digest Authentication Client
BSD 2-Clause "Simplified" License
41 stars 68 forks source link

copy headers from request for RoundTrip() method #22

Closed orphaner closed 3 years ago

orphaner commented 4 years ago

Hello,

headers are not copied from the Request to the DigestRequest in the RoundTrip() method. I had an impact during a POST method with a json body. I got a 415 error because the header "Content-Type" was not set properly. So I've fixed it and I propose you this PR inspired from the issue #8

xinsnake commented 3 years ago

Thanks for your pull request. Due to time limit on my side I won't be able to maintain this package. Please consider using some other library like https://github.com/rkl-/digest. Thanks for your support!