Commit Graph

43 Commits

Author SHA1 Message Date
verycarefully 293a5aa832 Fix another lint error pep8 didn't catch. 2016-08-08 14:27:40 -04:00
verycarefully 9eda5213c0 Fix up more lint errors. 2016-08-08 14:23:58 -04:00
verycarefully 3ba5dbf23f Opt-in behavior to ignore system proxies. 2016-08-08 12:09:38 -04:00
Greg Neagle d42b6c04ef PyLint cleanups 2016-04-13 14:42:17 -07:00
Greg Neagle c4b98e24ff Adjust debug message when importing middleware 2016-04-13 14:07:25 -07:00
Greg Neagle e847454b60 More efficient middleware import 2016-04-13 14:05:16 -07:00
Greg Neagle 452c3e8f2a Safer import of middleware; add warning and debug output 2016-04-13 13:55:13 -07:00
Wade Robson 13f6782f9a function doesn't seem necessary anymore 2016-04-07 21:40:23 -07:00
Wade Robson 91bbd654f6 Import middleware once 2016-04-07 20:57:05 -07:00
Wade Robson fb6ac507ab Stop using sys to find munki dir. 2016-03-25 17:00:31 -07:00
Wade Robson 304853a6fc fixed crash due to no middleware 2016-03-21 22:16:35 -07:00
Wade Robson f8f9c94ee1 look for middleware*.py if present change options dict 2016-03-21 22:01:02 -07:00
Wade Robson a28a918feb Allow for the use of middleware 2016-03-20 19:40:40 -07:00
Greg Neagle 12d4f0d27e Update copyright info on files; remove abandoned tools from code/tools 2016-03-15 09:32:28 -07:00
Greg Neagle 437af40d2b PyLint cleanups 2015-12-09 11:53:14 -08:00
Greg Neagle c19f2d7936 Simplfy default user-agent header. 2015-12-09 11:41:30 -08:00
Greg Neagle fda740c046 Merge pull request #537 from mkuron/patch-1
Set User-Agent header in HTTP requests
2015-12-09 11:36:46 -08:00
Michael Kuron 918ebc64e4 Fix wrong line break 2015-11-19 09:52:26 +01:00
Michael Kuron 6f0a10f1da Cache default user agent 2015-11-19 09:48:52 +01:00
Michael Kuron 0bc12e57bf Python and CFNetwork version in User-Agent 2015-11-18 10:29:59 +01:00
Samuel Keeley 5c12185da4 Replace http://www.apache.org/licenses/LICENSE-2.0 with https://www.apache.org/licenses/LICENSE-2.0 2015-11-13 20:35:24 -08:00
Michael Kuron 088302be1d User-Agent header if other headers are specified 2015-11-13 15:35:29 +01:00
Michael Kuron d1f9475c54 header_dict_from_list documentation 2015-11-13 15:07:53 +01:00
Michael Kuron 4d36b6afb1 Set User-Agent header in HTTP requests
Previously Munki only set a User-Agent header on requests made from the appleupdates.py code. Everything else (catalog, manifest, package downloading) reported something like `"Python/2.7.5 CFNetwork/673.6 Darwin/13.4.0 (x86_64) (VMware7%2C1)"` to the server.
2015-11-13 14:54:54 +01:00
Graham Gilbert effe971249 Preference to Follow HTTP Recirects 2015-10-23 10:33:20 +01:00
Greg Neagle 423ec8b790 PyLint cleanup: replace all unused_foo variables with dummy_foo variables to make PyLint happy 2014-10-26 11:42:33 -07:00
Greg Neagle 38ebbf79ec Move more code from makekeychain to munkilib.keychain; attempt to build keychain on demand; should not need to run makekeychain at all 2014-10-22 11:59:32 -07:00
Greg Neagle e232c1b955 New attempt to use NSURLConnection + keychain to replace curl 2014-10-15 16:39:38 -07:00
Greg Neagle fddd138000 Bumping version to 1.0.0. Updated copyright dates. 2014-01-10 08:20:15 -08:00
Justin McWilliams ddfedc5e36 Display and log HTTP headers when package downloads fail. 2013-11-25 12:25:56 -05:00
Greg Neagle 6e3555820a Fix for curl buffering headers output in Mavericks, causing progress display not to function. 2013-11-15 12:14:31 -08:00
Michael Lynn 468924f2b3 Allow changing curl path for 10.9 curl client-side cert workaround 2013-11-07 14:21:19 -08:00
Greg Neagle 97d0d34f9b Initial support for checking for available licensed seats for uninstalled optional_installs 2013-07-16 15:21:29 -07:00
Greg Neagle 4b71ace130 Updated copyright info on all files with copyright info. 2013-01-28 11:55:09 -08:00
Rob Middleton d73bb1370c Keep parsing stdout after curl exits. Small downloads caused fetch.curl to stop looping before the ETag header was read. Thus the ETag xattr was often not written for small fast downloads. (Fix for issue 208, 204, 161) 2012-11-08 10:32:28 +11:00
Greg Neagle 34ab750460 Changes to allow curl to follow redirects when retreiving an Apple sucatalog; this is needed to support Lion Server's Software Update service. 2012-02-14 16:51:34 -08:00
Greg Neagle 5651b2a9a4 appleupdates.py now sets User-Agent header; munki-specific cert and header stuff moved to updatecheck; tests updated 2011-12-22 14:01:27 -08:00
Greg Neagle 7160c4d176 Move a couple more functions from updatecheck.py to fetch.py 2011-12-21 15:02:36 -08:00
Greg Neagle 0c17cc4378 Complete refactor of fetch.py/updatecheck.py 2011-12-21 14:55:44 -08:00
Greg Neagle b6436114cd Merge munkicommon.display_status_* changes from branch master; include fetch.py 2011-12-21 11:33:50 -08:00
Greg Neagle 2fc08a0f49 Merge use of x-download-size header into fetch.py:curl 2011-12-21 10:11:46 -08:00
Greg Neagle 6c86d2ecdc More work on fetch.py? 2011-10-27 08:39:53 -07:00
Greg Neagle 821e9072cc Beginning of refactor for getResource/curl methods 2011-09-29 16:24:23 -07:00