Re: [Django] #17514: GZip middleware lacks tests and sends compressed responses when larger than the original

2012-01-09 Thread Django
#17514: GZip middleware lacks tests and sends compressed responses when larger 
than
the original
-+-
 Reporter:  cannona  |Owner:  aaugustin
 Type:   |   Status:  closed
  Cleanup/optimization   |  Version:  SVN
Component:  Uncategorized|   Resolution:  fixed
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  gzip, tests  |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by aaugustin):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [17365]:
 {{{
 #!CommitTicketReference repository="" revision="17365"
 Fixed #10762, #17514 -- Prevented the GZip middleware from returning a
 response longer than the original content, allowed compression of non-200
 responses, and added tests (there were none). Thanks cannona for the
 initial patch.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #17514: GZip middleware lacks tests and sends compressed responses when larger than the original

2012-01-09 Thread Django
#17514: GZip middleware lacks tests and sends compressed responses when larger 
than
the original
-+-
 Reporter:  cannona  |Owner:  aaugustin
 Type:   |   Status:  new
  Cleanup/optimization   |  Version:  SVN
Component:  Uncategorized|   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  gzip, tests  |  Needs documentation:  0
Has patch:  1|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by aaugustin):

 * owner:  nobody => aaugustin


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #17514: GZip middleware lacks tests and sends compressed responses when larger than the original

2012-01-09 Thread Django
#17514: GZip middleware lacks tests and sends compressed responses when larger 
than
the original
--+
 Reporter:  cannona   |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Uncategorized |  Version:  SVN
 Severity:  Normal|   Resolution:
 Keywords:  gzip, tests   | Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by aaugustin):

 * needs_docs:   => 0
 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * stage:  Unreviewed => Accepted


Comment:

 This would supersede #10762.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #17514: GZip middleware lacks tests and sends compressed responses when larger than the original

2012-01-07 Thread Django
#17514: GZip middleware lacks tests and sends compressed responses when larger 
than
the original
--+-
 Reporter:  cannona   |  Owner:  nobody
 Type:  Cleanup/optimization  | Status:  new
Component:  Uncategorized |Version:  SVN
 Severity:  Normal|   Keywords:  gzip, tests
 Triage Stage:  Unreviewed|  Has patch:  1
Easy pickings:  0 |  UI/UX:  0
--+-
 The GZip middleware does not currently have any tests.

 In addition, in some cases it is not efficient to send a compressed
 response when the data doesn't compress.  After the data is compressed, a
 check should be performed to see if the compressed data is equal to or
 larger than the original data, and if so, the original data should be
 returned instead of the compressed data.  This will save a minuscule
 amount of bandwidth, but it will also save the recipient from having to
 decompress data.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.