Skip to content

Commit fa03ec6

Browse files
author
Josh Mervine
committed
Adding custom header and bumping version.
1 parent 7e76e7e commit fa03ec6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ netdnarws.egg-info/*
66
.coverage
77
junit-report.xml
88
.ropeproject
9+
maxcdn.egg-info

maxcdn/maxcdn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def __init__(self, alias, key, secret, server="rws.maxcdn.com", **kwargs):
1212
self.client = OAuth1(key, client_secret=secret, **kwargs)
1313

1414
def _get_headers(self, json=True):
15-
headers = { "User-Agent": None }
15+
headers = { "User-Agent": "Python MaxCDN API Client" }
1616
if json:
1717
headers["Content-Type"] = "application/json"
1818
return headers

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
options = {
55
"name" : "maxcdn",
6-
"version" : "0.0.1",
6+
"version" : "0.0.2",
77
"description" : "A Python REST Client for MaxCDN REST Web Services",
88
"author" : "Joshua P. Mervine",
99
"author_email" : "[email protected]",
1010
"license" : "MIT",
1111
"keywords" : "MAxCDN CDN API REST",
1212
"packages" : ['maxcdn'],
13-
"url" : 'http://www.maxcdn.com'
13+
"url" : 'http://github.com/maxcdn/python-maxcdn'
1414
}
1515

1616
# additional setuptools data (python 2.x)

0 commit comments

Comments
 (0)