Skip to content

Conversation

@infabo
Copy link

@infabo infabo commented Nov 4, 2025

No description provided.

@Grotax Grotax requested a review from Copilot November 10, 2025 07:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds HTTP redirect handling capabilities to the FeedIo HTTP client with support for all standard redirect status codes (301, 302, 303, 307, 308), including protection against infinite redirect loops and relative URL resolution.

  • Implements automatic following of HTTP redirects with configurable maximum limit (10 redirects)
  • Adds support for both absolute and relative redirect URLs
  • Preserves If-Modified-Since headers through redirect chains

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.

File Description
src/FeedIo/Adapter/Http/Client.php Adds redirect handling logic with MAX_REDIRECTS constant, handleRedirect method for processing redirect responses, and resolveRedirectUrl method for converting relative URLs to absolute
tests/FeedIo/Adapter/Http/ClientTest.php Comprehensive test suite covering redirect scenarios including multiple redirects, different status codes, empty Location headers, and duration tracking
CHANGELOG.md Documents the new HTTP redirect handling feature

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Grotax Grotax merged commit c25193c into php-feed-io:main Nov 13, 2025
5 checks passed
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.

2 participants