﻿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
31429	Django test client adds carriage return on empty request.	Muresan Paul	nobody	"Steps to reproduce:
1. Build endpoint for POST/PUT/PATCH
2. use empty body client.post() on the reverse URL
3. list(request.body) -> ['-', '-', 'B', 'o', 'U', 'n', 'D', 'a', 'R', 'y', 'S', 't', 'R', 'i', 'N', 'g', '-', '-', '\r', '\n']

Issue:
If any security measures as in place \r will always be sanitized. Any checks done on the requests.body will have to take into account this atypical case. This is due to how django client does json encoding and presents a danger.

Proposal:
use the typical json.dumps() instead of the current implementation"	Bug	closed	Testing framework	3.0	Normal	needsinfo	carriage-character Django-test security		Unreviewed	0	0	0	0	0	0
