Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: overal waar we HttpCompletionOption specificeren, ResponseHeadersRead gebruiken #113

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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