Skip to content

Commit 46cb1d2

Browse files
send Notion-Version header with every request
1 parent 9b3fbcd commit 46cb1d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Src/Notion.Client/RestClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ private HttpClient EnsureHttpClient()
5757
_httpClient = new HttpClient();
5858
_httpClient.BaseAddress = new Uri(_options.BaseUrl);
5959
_httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", _options.AuthToken);
60+
_httpClient.DefaultRequestHeaders.Add("Notion-Version", _options.NotionVersion);
6061
}
6162

6263
return _httpClient;

0 commit comments

Comments
 (0)