Handle HTTP digest auth correctly in TDRemoteRequest

Fixes #269