Skip to content

Commit

Permalink
Fixes #917
Browse files Browse the repository at this point in the history
  • Loading branch information
borrrden committed Oct 19, 2017
1 parent 13fb8ef commit 6b38dfd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Couchbase.Lite.Shared/Util/DefaultAuthHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ protected override HttpResponseMessage ProcessResponse(HttpResponseMessage respo

protected override HttpRequestMessage ProcessRequest(HttpRequestMessage request, CancellationToken cancellationToken)
{
lock (_locker) {
request.Headers.Remove("Cookie");
request.Headers.Add("Cookie", _cookieStore.GetCookieHeader(request.RequestUri));
}

if(request.Content != null && !(request.Content is CompressedContent)) {
// This helps work around .NET 3.5's tendency to read from filestreams
// multiple times (the second time will be zero length since the filestream
Expand Down

0 comments on commit 6b38dfd

Please sign in to comment.