Skip to content

Conversation

@nezlobnaya
Copy link
Contributor

@nezlobnaya nezlobnaya commented Nov 4, 2025

Key Changes:

  • Refactored GetStatus()
  • Splits request logic into two phases:
  • HEAD probe — validates status and Location header without following redirects.
  • GET request — follows all redirects and validates final content (if ExpectedContent is set).
  • Added detailed debug logging for redirects.
  • Improved comparison helpers
  • failureString() now uses compareLocations() instead of raw equality for API consistency.
  • Added richer comments to compareLocations().
  • Defensive nil checks in performHeadRequest().
  • Ensures statusContentOk is computed once upstream and passed through cleanly.

Resolves #156

@nezlobnaya nezlobnaya force-pushed the fix/redirect-content-validation branch from 1a78fa6 to 2b60644 Compare November 10, 2025 21:59
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.

Fix redirect + content validation logic for Application checks

2 participants