xinsnake / go-http-digest-auth-client

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

[Feature] ability to set custom timeout #14

Closed agis closed 5 years ago

agis commented 5 years ago

Hello,

I'm using the library but the hardcoded timeout of 30" is too small for my use-case (I'm downloading very large files).

What do you think about making the value configurable?It could be added to DigestRequest and DigestTransport so that it's picked up by the paths that execute the requests eventually.

If that sounds good, I could prepare a patch. Thanks!

P.S. This is probably related to #5.

agis commented 5 years ago

Actually, the change was trivial so I've implemented it right away.