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

Add handling for 301 (redirect) HTTP response codes #17

Merged
merged 1 commit into from
May 3, 2024

Conversation

FrankMaverick
Copy link
Contributor

This commit enhances the URL testing script to handle HTTP response codes 301 (redirect) in addition to 200 (OK). Previously, the script only considered 200 as a valid response code. With this enhancement, URLs that return a 301 status code will also be treated as valid, ensuring comprehensive testing for URL accessibility.

Changes Made:

  • Updated the test_url() function in the test script to include handling for HTTP response code 301.
  • Modified the condition within the loop to check for both 200 and 301 response codes as valid.

@ndc-istat ndc-istat self-assigned this May 3, 2024
@ndc-istat ndc-istat merged commit 6c3633d into teamdigitale:main May 3, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants