Revision 8df239df kamaki/clients/pithos/__init__.py

b/kamaki/clients/pithos/__init__.py
426 426
            blocksize, blockhash, size, nblocks) = self._get_file_block_info(
427 427
                f, size, container_info_cache)
428 428
        (hashes, hmap, offset) = ([], {}, 0)
429
        if not content_type:
430
            content_type = 'application/octet-stream'
429
        content_type = content_type or 'application/octet-stream'
431 430

  
432 431
        self._calculate_blocks_for_upload(
433 432
            *block_info,

Also available in: Unified diff