{"action":"created","issue":{"url":"https://api.github.com/repos/munki/munki/issues/537","labels_url":"https://api.github.com/repos/munki/munki/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/munki/munki/issues/537/comments","events_url":"https://api.github.com/repos/munki/munki/issues/537/events","html_url":"https://github.com/munki/munki/pull/537","id":116772533,"number":537,"title":"Set User-Agent header in HTTP requests","user":{"login":"mkuron","id":1748330,"avatar_url":"https://avatars.githubusercontent.com/u/1748330?v=3","gravatar_id":"","url":"https://api.github.com/users/mkuron","html_url":"https://github.com/mkuron","followers_url":"https://api.github.com/users/mkuron/followers","following_url":"https://api.github.com/users/mkuron/following{/other_user}","gists_url":"https://api.github.com/users/mkuron/gists{/gist_id}","starred_url":"https://api.github.com/users/mkuron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkuron/subscriptions","organizations_url":"https://api.github.com/users/mkuron/orgs","repos_url":"https://api.github.com/users/mkuron/repos","events_url":"https://api.github.com/users/mkuron/events{/privacy}","received_events_url":"https://api.github.com/users/mkuron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-13T13:56:31Z","updated_at":"2015-11-13T14:36:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/munki/munki/pulls/537","html_url":"https://github.com/munki/munki/pull/537","diff_url":"https://github.com/munki/munki/pull/537.diff","patch_url":"https://github.com/munki/munki/pull/537.patch"},"body":"Right now Munki only sets a User-Agent header on requests made from the appleupdates.py code. Everything else (catalog, manifest, package downloading) reports something like `\"Python/2.7.5 CFNetwork/673.6 Darwin/13.4.0 (x86_64) (VMware7%2C1)\"` to the server. For certain server-side stuff, it can be useful to have something like `managedsoftwareupdate/2.3.1.2535` prepended."},"comment":{"url":"https://api.github.com/repos/munki/munki/issues/comments/156449301","html_url":"https://github.com/munki/munki/pull/537#issuecomment-156449301","issue_url":"https://api.github.com/repos/munki/munki/issues/537","id":156449301,"user":{"login":"mkuron","id":1748330,"avatar_url":"https://avatars.githubusercontent.com/u/1748330?v=3","gravatar_id":"","url":"https://api.github.com/users/mkuron","html_url":"https://github.com/mkuron","followers_url":"https://api.github.com/users/mkuron/followers","following_url":"https://api.github.com/users/mkuron/following{/other_user}","gists_url":"https://api.github.com/users/mkuron/gists{/gist_id}","starred_url":"https://api.github.com/users/mkuron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkuron/subscriptions","organizations_url":"https://api.github.com/users/mkuron/orgs","repos_url":"https://api.github.com/users/mkuron/repos","events_url":"https://api.github.com/users/mkuron/events{/privacy}","received_events_url":"https://api.github.com/users/mkuron/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T14:36:04Z","updated_at":"2015-11-13T14:36:04Z","body":"I'm preparing some code for #536. As redirects require 2.4.0 or higher, my server-side PHP script will need to fall back to including the manifest instead of redirecting to it for Munki 2.3 and lower. Right now, there's no way for the PHP script to detect the Munki version.\r\n\r\nI just fixed the he `array is None` mistake."}}