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

Update User-Agent header to identify as pulsebot #26

merged 2 commits into from Mar 14, 2019
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+1 −0
Diff settings


Just for now

Copy path View file
@@ -14,6 +14,7 @@ class Bugzilla(object):
def __init__(self, server, api_key):
self._server = server.rstrip('/')
self._session = requests.Session()
self._session.headers.update({'User-Agent': 'glandium/pulsebot'})

This comment has been minimized.

Copy link

glandium Mar 13, 2019


I'd rather not hardcode glandium in there. Could you also add the rationale in the commit message? Is this for filtering on the bugzilla end? Can't filtering be done via api key?

self._session.params['api_key'] = api_key

def get_fields(self, bug, fields):
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.