Revision 6c6abf6e

b/kamaki/cli/commands/pithos.py
378 378

  
379 379
    def main(self, path_or_url):
380 380
        super(self.__class__, self)._run(path_or_url)
381
        if self['publish'] and self['unpublish']:
382
            raise CLIInvalidArgument(
383
                'Arguments %s and %s cannot be used together' % (
384
                    self.arguments['publish'].lvalue,
385
                    self.arguments['publish'].lvalue))
386 381
        if self['no_permissions'] and (
387 382
                self['uuid_for_read_permission'] or self[
388 383
                    'uuid_for_write_permission']):
b/kamaki/clients/__init__.py
161 161
        else:
162 162
            sendlog.info('data size: 0%s' % plog)
163 163

  
164
    def _encode_headers(self):
165
        headers = self.headers
166
        for k, v in self.headers.items():
167
            headers[k] = quote(v)
168
        self.headers = headers
169

  
164 170
    def perform(self, conn):
165 171
        """
166 172
        :param conn: (httplib connection object)
......
168 174
        :returns: (HTTPResponse)
169 175
        """
170 176
        self.dump_log()
177
        self._encode_headers()
171 178
        conn.request(
172 179
            method=str(self.method.upper()),
173 180
            url=str(self.path),

Also available in: Unified diff