Skip to content

Commit c1bf9da

Browse files
committed
Added Accept header to FindAsync
1 parent 9611433 commit c1bf9da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CouchDB.Driver/CouchDatabase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ internal CouchDatabase(IFlurlClient flurlClient, CouchOptions options, QueryCont
8181
public async Task<TSource?> FindAsync(string docId, FindOptions options, CancellationToken cancellationToken = default)
8282
{
8383
IFlurlRequest request = NewRequest()
84+
.WithHeader("Accept", "application/json")
8485
.AppendPathSegment(Uri.EscapeDataString(docId));
8586

8687
IFlurlResponse? response = await SetFindOptions(request, options)

0 commit comments

Comments
 (0)