﻿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` at 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:
{{{
content_type = self.META.get('CONTENT_TYPE', None) or ''
if content_type.startswith('multipart'):
}}}"	Bug	closed	HTTP handling	1.4	Normal	wontfix	content-type	olau@… Ivan Virabyan purohit@…	Design decision needed	1	0	0	0	0	0
