Bug #1552

mod_compress: should match for complete mime-type and the part before ';'

Added by stbuehler about 6 years ago. Updated over 4 years ago.

Status:FixedStart date:
Priority:NormalDue date:
Assignee:jan% Done:

100%

Category:mod_compress
Target version:1.4.24
Missing in 1.5.x:No

Description

config example:


mimetype.assign = ( ".txt" => "text/plain; charset=utf-8" )
compress.filetype           = ("text/plain")

Now the mimetypes do not match exactly, so mod_compress does not trigger.
The following patch checks for both: complete mime-type or the first part up to ';'.

mod_compress-match-for-complete-mime-type_lighty1.4.patch Magnifier - Fixed some stupid bugs (2.35 KB) stbuehler, 2008-02-15 15:38

mod_compress-match-for-complete-mime-type_lighty1.5.patch Magnifier (1.65 KB) stbuehler, 2008-02-15 15:45


Related issues

Duplicated by Bug #2115: Issue in the parsing of filetypes for mod_compress Duplicate 2009-12-09

Associated revisions

Revision 2634
Added by stbuehler over 4 years ago

mod_compress: match partial+full content-type (fixes #1552)

History

#1 Updated by stbuehler over 5 years ago

  • Target version changed from 1.4.20 to 1.4.21

#2 Updated by icy about 5 years ago

  • Target version changed from 1.4.21 to 1.4.22
  • Patch available set to No

#3 Updated by stbuehler about 5 years ago

  • Target version changed from 1.4.22 to 1.4.23

#4 Updated by stbuehler almost 5 years ago

  • Target version changed from 1.4.23 to 1.4.24

#5 Updated by stbuehler over 4 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2634.

#6 Updated by stbuehler over 4 years ago

  • Missing in 1.5.x set to No

Also available in: Atom