Skip to content

Commit

Permalink
fix: overal waar we HttpCompletionOption specificeren, ResponseHeader…
Browse files Browse the repository at this point in the history
…sRead gebruiken
  • Loading branch information
felixcicatt committed Nov 28, 2024
1 parent 64e1851 commit 6e6dc26
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public async Task<IActionResult> Put(string version, Guid uuid, PublicatieDocume
var url = $"/api/{version}/documenten/{uuid}";

// document ophalen
using var getResponse = await client.GetAsync(url, HttpCompletionOption.ResponseContentRead, token);
using var getResponse = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead, token);

if (!getResponse.IsSuccessStatusCode)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public async Task<IActionResult> Get(string version, Guid uuid, CancellationToke

var url = $"/api/{version}/documenten/{uuid}";

using var response = await client.GetAsync(url, HttpCompletionOption.ResponseContentRead, token);
using var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead, token);

if (!response.IsSuccessStatusCode)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public async Task<IActionResult> Get(

var url = $"/api/{version}/documenten?publicatie={publicatie}&eigenaar={WebUtility.UrlEncode(user.Id)}&page={page}";

using var response = await client.GetAsync(url, HttpCompletionOption.ResponseContentRead, token);
using var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead, token);

if (!response.IsSuccessStatusCode)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public async Task<IActionResult> Get(string version, CancellationToken token, [F
using var client = clientFactory.Create("Informatiecategorieen ophalen");
var url = $"/api/{version}/informatiecategorieen?page={page}";

using var response = await client.GetAsync(url, HttpCompletionOption.ResponseContentRead, token);
using var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead, token);

if (!response.IsSuccessStatusCode)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public async Task<IActionResult> Get(string version, CancellationToken token, [F
using var client = clientFactory.Create("Organisaties ophalen");
var url = $"/api/{version}/organisaties?page={page}";

using var response = await client.GetAsync(url, HttpCompletionOption.ResponseContentRead, token);
using var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead, token);

if (!response.IsSuccessStatusCode)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task<IActionResult> Put(string version, Guid uuid, Publicatie publi
var url = $"/api/{version}/publicaties/{uuid}";

// publicatie ophalen
using var getResponse = await client.GetAsync(url, HttpCompletionOption.ResponseContentRead, token);
using var getResponse = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead, token);

if (!getResponse.IsSuccessStatusCode)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public async Task<IActionResult> Put(string version, Guid uuid, CancellationToke

var url = $"/api/{version}/publicaties/{uuid}";

using var response = await client.GetAsync(url, HttpCompletionOption.ResponseContentRead, token);
using var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead, token);

if (!response.IsSuccessStatusCode)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public async Task<IActionResult> Get(

var url = $"/api/{version}/publicaties?{UrlHelper.BuildQueryString(parameters)}";

using var response = await client.GetAsync(url, HttpCompletionOption.ResponseContentRead, token);
using var response = await client.GetAsync(url, HttpCompletionOption.ResponseHeadersRead, token);

if (!response.IsSuccessStatusCode)
{
Expand Down

0 comments on commit 6e6dc26

Please sign in to comment.