﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17474	Problem when the request doesn't have Content-Type.	Marcelo Salhab Brogliato <msbrogli@…>	nobody	"I don't know exactly why, but some ajax requests don't have Content-Type header.
When this happens, when I try to get request.POST, I got the following exception: 'NoneType' object has no attribute 'startswith',
raised by method _load_post_and_files (line 270) of django/http/__init__.py.

The problem is that when the request doesn't have Content-Type, self.META.get('CONTENT_TYPE', '') returns None.
To fix the problem I just did it:
<code>
content_type = self.META.get('CONTENT_TYPE', None) or ''
if content_type.startswith('multipart'):
</code>"	Bug	new	HTTP handling	1.3	Normal		content-type		Unreviewed	1	0	0	0	0	0
