Skip to content

Conversation

@sindhufloat
Copy link
Contributor

Handled 302 (Found) redirect in RequestClient

@sindhufloat sindhufloat requested a review from mediabounds May 26, 2025 20:13
@github-actions
Copy link

github-actions bot commented May 26, 2025

Test Results

 2 files   2 suites   2s ⏱️
34 tests 33 ✅ 1 💤 0 ❌
68 runs  66 ✅ 2 💤 0 ❌

Results for commit 83a2854.

♻️ This comment has been updated with latest results.

Copy link
Member

@mediabounds mediabounds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to addressing the in-line note, can you also...

  1. Modify .github/workflows/test.yml to include 8.0.x in the dotnet versions
  2. Modify .github/workflows/deploy.yml to include 8.0.x in the dotnet versions

// Verify if a redirect happened.
if (httpResponse.StatusCode == HttpStatusCode.Moved
|| httpResponse.StatusCode == HttpStatusCode.MovedPermanently)
|| httpResponse.StatusCode == HttpStatusCode.MovedPermanently
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the docs, MovedPermanently is a synonym for Moved.

Suggested change
|| httpResponse.StatusCode == HttpStatusCode.MovedPermanently

@sindhufloat sindhufloat requested a review from mediabounds May 28, 2025 00:19
@mediabounds mediabounds merged commit bdc9f58 into main May 28, 2025
2 checks passed
@mediabounds mediabounds deleted the SL-11155 branch May 28, 2025 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants