﻿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
10762	Gzip Middleware Should Compress 201 (Created) Responses	rwagner@…	Aymeric Augustin	"Hi,

RESTful web services that use POST for creation of resources often respond with a representation of the newly created resource, which can be lengthy. However, the appropriate status code is 201, which the Gzip middleware ignores. There's a trivial patch attached that contains these lines:

{{{
-        if response.status_code != 200 or len(response.content) < 200:
+        if response.status_code not in (200, 201) or len(response.content) < 200:
}}}

This is not a particularly big deal, just a convenience.

Thanks,
Rick"	Cleanup/optimization	closed	HTTP handling	dev	Normal	fixed	middleware gzip	Georges Dubus Aaron Cannon	Accepted	1	0	0	0	1	0
