diff options
author | 2011-11-30 00:15:25 +0100 | |
---|---|---|
committer | 2011-11-30 00:15:25 +0100 | |
commit | 3547813022e7f5da658e74317ca62849609b5d24 (patch) | |
tree | c7ebaa4f3ed0a17f782c52a341aeaf5b4877ab1a /github3/handlers/base.py | |
parent | Fix get_converter to delete converter in kwargs (diff) | |
download | python-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.py | 4 |
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): |