[TYPO3-core] RFC: Bug 4623: Content encoding with x-gzip not possible in IE7

Oliver Hader oh at inpublica.de
Wed Mar 28 14:49:50 CEST 2007


This is a SVN patch request.

Problem:
IE7 can't handle pages with "Content-Encoding: x-gzip" set in HTTP
headers. Furthermore "x-gzip" normally is used only for the Content-Type
(e.g. MIME type) and not for the Content-Encoding.

Solution:
Change the information in the "Content-Encoding" header from "x-gzip" to
"gzip" and also evaluate HTTP_ACCEPT_ENCODING correctly in cosideration
of qvalues. If the browser sends "Acept-Encoding: gzip;q=0,deflate",
this means that gzip shouldn't be used for this browser (see HTTP/1.1
specs, RFC 2616).

Comments:
I added missing JavaDoc comments to the class and fixed some line
formatting. I attached three patches to this RFC:
* 0004623_v2.patch - is the one I'd like to commit
* 0004623_v2_w.patch - is without changes to whitespaces
* 0004623_v2_reduced.patch - is reduced to show only the code changes

References:
http://bugs.typo3.org/view.php?id=4623
http://www.ietf.org/rfc/rfc2616.txt

Branches: Trunk & TYPO3_4-1 & TYPO3_4-0


olly
-- 
Oliver Hader
http://inpublica.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004623_v2_reduced.patch
Type: text/x-diff
Size: 1380 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070328/629d3cc1/attachment-0003.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004623_v2_w.patch
Type: text/x-diff
Size: 4967 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070328/629d3cc1/attachment-0004.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004623_v2.patch
Type: text/x-diff
Size: 23602 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070328/629d3cc1/attachment-0005.bin 


More information about the TYPO3-team-core mailing list