boto/boto — pull request #600 by marccohen (2012-02-27 21:00:32+00:00)
Title: fix handling of Null (None) Content-Type header for resumable uploads

Verified fixed:

marccohen@mcohen:~/tmp/gsutil/src$ ls -l file.mp3
-rw-r----- 1 marccohen eng 3403935 2012-02-27 12:50 file.mp3
marccohen@mcohen:~/tmp/gsutil/src$ file file.mp3
file.mp3: Audio file with ID3 version 2.3.0, contains: MPEG ADTS, layer III, v1,
128 kbps, 44.1 kHz, JntStereo
marccohen@mcohen:~/tmp/gsutil/src$ ./gsutil -h Content-Type: cp file.mp3
gs://marc-a/x
Copying file://file.mp3...
Uploading: 3.25 MB/3.25 MB
marccohen@mcohen:~/tmp/gsutil/src$ ./gsutil ls -L gs://marc-a/x
gs://marc-a/x:
Object size:	3403935
Last mod:	Mon, 27 Feb 2012 20:53:30 GMT
Cache control:	private, max-age=0
MIME type:	audio/mpeg
Etag:	38e866d7fb8905783709036de283b323
ACL:	:
u'FULL_CONTROL'>, <:
u'FULL_CONTROL'>, <: u'READ'>,
<:
u'FULL_CONTROL'>>
TOTAL: 1 objects, 3403935 bytes (3.25 MB)

All unit tests passed.