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

Adds a User-agent header to curl module requests #219

Merged

Commits on Nov 30, 2021

  1. Adds a User-agent header to curl module requests

    The header will be of the form:
    
        peru/{version} Python-urllib/{version}
    
    Fixes buildinspace#218
    colindean committed Nov 30, 2021
    Configuration menu
    Copy the full SHA
    d30c8ca View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2021

  1. Inline version resolution for User-agent

    and use a %-format instead of an f-format to maintain compatibility with
    Python 3.5 since f-format came in 3.6.
    colindean committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    13ca2ce View commit details
    Browse the repository at this point in the history
  2. Extract User-agent addition to a separate method

    This sets the stage for more request modifications.
    colindean committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    ca79267 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2021

  1. Configuration menu
    Copy the full SHA
    e939d5f View commit details
    Browse the repository at this point in the history