Skip to content

Commit 0cd5d71

Browse files
committed
Moved license file into package, minor fix to utils open_url to fix kwargs to auth handler
1 parent 282ffdb commit 0cd5d71

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
File renamed without changes.

ndg/httpsclient/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ def open_url(url, config, data=None, handlers=None):
188188
# currently only supports http basic auth
189189
auth_handler = HTTPBasicAuthHandler_(HTTPPasswordMgrWithDefaultRealm_())
190190
auth_handler.add_password(realm=None, uri=url,
191-
user=config.httpauth[0],
192-
passwd=config.httpauth[1])
191+
user=config.http_basicauth[0],
192+
passwd=config.http_basicauth[1])
193193
handlers.append(auth_handler)
194194

195195

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
0.4.1
1919
-----
2020
* Added explicit ref to Python 3 in classifier text for Python 3 checking tools.
21+
* Moved LICENSE file into package
2122
2223
0.4.0
2324
-----
@@ -121,6 +122,7 @@
121122
# package_dir={'ndg.httpsclient': 'ndg/httpsclient'},
122123
package_data={
123124
'ndg.httpsclient': [
125+
'LICENSE',
124126
'test/README',
125127
'test/scripts/*.sh',
126128
'test/pki/localhost.*',

0 commit comments

Comments
 (0)