Closed shaansubbaiah closed 4 years ago
Fixes the HTTP 403 Error due to websites blocking requests with the urllib user-agent. Uses the Browse/WebKit2 user-agent.
HTTP 403 Error
urllib
Also sets the Sugar version in the user-agent to the latest release, and uses 114 as the fallback, in case the SUGAR_VERSION env variable is missing.
114
SUGAR_VERSION
@quozl @chimosky @srevinsaju kindly review.
Fixes the
HTTP 403 Error
due to websites blocking requests with theurllib
user-agent. Uses the Browse/WebKit2 user-agent.Also sets the Sugar version in the user-agent to the latest release, and uses
114
as the fallback, in case theSUGAR_VERSION
env variable is missing.