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

Set default user agent for external requests #952

Merged
merged 1 commit into from
Feb 19, 2020
Merged

Set default user agent for external requests #952

merged 1 commit into from
Feb 19, 2020

Commits on Feb 18, 2020

  1. Set default user agent for external requests

    Many servers will return errors (e.g. 400/403) to requests that do not
    set a User-Agent header. This results in issues in both the link_checker
    and load_data components. With the link_checker these are false positive
    dead links. In load_data, remote data fails to be fetched. To mitigate
    this issue, this sets a default User-Agent of
    
        $CARGO_PKG_NAME/$CARGO_PKG_VERSION
    
    Note that the root cause of this regression from zola v0.9.0 is that
    reqwest 0.10 changed their default behavior and no longer sets a
    User-Agent by default:
    
        seanmonstar/reqwest#751
    
    Fixes #950.
    lukehsiao committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    661bd9c View commit details
    Browse the repository at this point in the history