diff options
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): |