Revision abff3366 kamaki/cli/commands/pithos.py

b/kamaki/cli/commands/pithos.py
983 983
    @errors.pithos.container
984 984
    @errors.pithos.object_path
985 985
    def _run(self):
986
        ctype, cenv = guess_mime_type(self.path)
986
        ctype, cenc = guess_mime_type(self.path)
987 987
        self._optional_output(self.client.create_object_by_manifestation(
988 988
            self.path,
989 989
            content_encoding=self['content_encoding'] or cenc,
990 990
            content_disposition=self['content_disposition'],
991
            content_type=self['content_type'], or ctype,
991
            content_type=self['content_type'] or ctype,
992 992
            sharing=self['sharing'],
993 993
            public=self['public']))
994 994

  

Also available in: Unified diff