aboutsummaryrefslogtreecommitdiffstats
path: root/github3/handlers/base.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2011-11-30 00:15:25 +0100
committerDavid Medina <davidmedina9@gmail.com>2011-11-30 00:15:25 +0100
commit3547813022e7f5da658e74317ca62849609b5d24 (patch)
treec7ebaa4f3ed0a17f782c52a341aeaf5b4877ab1a /github3/handlers/base.py
parentFix get_converter to delete converter in kwargs (diff)
downloadpython-github3-3547813022e7f5da658e74317ca62849609b5d24.tar.xz
python-github3-3547813022e7f5da658e74317ca62849609b5d24.zip
Fix mime_header to return None if needed
Diffstat (limited to 'github3/handlers/base.py')
-rw-r--r--github3/handlers/base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/github3/handlers/base.py b/github3/handlers/base.py
index e36a08a..565978f 100644
--- a/github3/handlers/base.py
+++ b/github3/handlers/base.py
@@ -33,7 +33,9 @@ class MimeTypeMixin(object):
return self
def mime_header(self):
- return {'Accept': ', '.join(self.mimetypes)}
+ if self.mimetypes:
+ return {'Accept': ', '.join(self.mimetypes)}
+ return None
class Handler(object):