Commit 10232a0
committed
mod_mime_magic: Disable decompression by default, add config option
to enable it.
* modules/metadata/mod_mime_magic.c (magic_server_config_rec): Add
decompression_enabled field.
(create_magic_server_config, merge_magic_server_config): Initialize and
merge decompression_enabled.
(set_decompression): New function.
(magic_cmds): Add MimeMagicDecompression directive.
(tryit): Only decompress files when decompression is enabled.
* docs/manual/mod/mod_mime_magic.xml: Document MimeMagicDecompression
directive.
PR: 69985
Submitted by: Gordon Messmer <gmessmer redhat.com>
Github: closes #625
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1932902 13f79535-47bb-0310-9956-ffa450edef681 parent 140c0bc commit 10232a0
3 files changed
Lines changed: 95 additions & 3 deletions
File tree
- changes-entries
- docs/manual/mod
- modules/metadata
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
274 | 334 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
456 | 458 | | |
457 | 459 | | |
458 | 460 | | |
| 461 | + | |
459 | 462 | | |
460 | 463 | | |
461 | 464 | | |
| |||
472 | 475 | | |
473 | 476 | | |
474 | 477 | | |
| 478 | + | |
475 | 479 | | |
476 | | - | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
477 | 483 | | |
478 | 484 | | |
479 | 485 | | |
| |||
484 | 490 | | |
485 | 491 | | |
486 | 492 | | |
| 493 | + | |
| 494 | + | |
487 | 495 | | |
488 | 496 | | |
489 | 497 | | |
| |||
502 | 510 | | |
503 | 511 | | |
504 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
505 | 523 | | |
506 | 524 | | |
507 | 525 | | |
| |||
510 | 528 | | |
511 | 529 | | |
512 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
513 | 538 | | |
514 | 539 | | |
515 | 540 | | |
| |||
878 | 903 | | |
879 | 904 | | |
880 | 905 | | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
881 | 909 | | |
882 | | - | |
| 910 | + | |
883 | 911 | | |
884 | | - | |
| 912 | + | |
885 | 913 | | |
886 | 914 | | |
887 | 915 | | |
| |||
0 commit comments