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 HTTP redirect issues in NCAAB module #216

Merged
merged 1 commit into from
Oct 4, 2019

Conversation

roclark
Copy link
Owner

@roclark roclark commented Oct 4, 2019

The NCAAB module was throwing unhandled HTTP 301 status codes for all pages, which masked 404 errors in the case of pages not being present, and therefore allowing false positives for pulling data from the website. The 301 codes were being thrown as the server automatically redirects from http:// to https:// for the linked pages, and should therefore default to https:// for the URLs to ensure proper codes are always returned while pulling webpages.

Fixes #215

Signed-Off-By: Robert Clark robdclark@outlook.com

The NCAAB module was throwing unhandled HTTP 301 status codes for all
pages, which masked 404 errors in the case of pages not being present,
and therefore allowing false positives for pulling data from the
website. The 301 codes were being thrown as the server automatically
redirects from http:// to https:// for the linked pages, and should
therefore default to https:// for the URLs to ensure proper codes are
always returned while pulling webpages.

Signed-Off-By: Robert Clark <robdclark@outlook.com>
@roclark roclark added the bug Something isn't working label Oct 4, 2019
@roclark roclark added this to the Release 0.5.0 milestone Oct 4, 2019
@roclark roclark self-assigned this Oct 4, 2019
@codecov
Copy link

codecov bot commented Oct 4, 2019

Codecov Report

Merging #216 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #216   +/-   ##
=======================================
  Coverage   99.97%   99.97%           
=======================================
  Files          42       42           
  Lines        9356     9356           
=======================================
  Hits         9354     9354           
  Misses          2        2
Impacted Files Coverage Δ
sportsreference/ncaab/constants.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f8e962...aa7a37f. Read the comment docs.

@roclark roclark merged commit 51df345 into master Oct 4, 2019
@roclark roclark deleted the patch/fix-ncaab-redirect-issue branch October 4, 2019 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTTP 404 error for upcoming NCAAB season
1 participant