Commit Diff
Diff:
4ee085938fdea146bb03cbf9d22927207f777e65
6468868fee132f062133ad9a1d373ef213e689f1
Commit:
6468868fee132f062133ad9a1d373ef213e689f1
Tree:
868d13a942c3d17f97e692859069a56f904c65ba
Author:
Omar Polo <op@omarpolo.com>
Date:
Thu Apr 7 16:15:55 2022 UTC
Message:
print a deprecation message for the map rule
commit - 4ee085938fdea146bb03cbf9d22927207f777e65
commit + 6468868fee132f062133ad9a1d373ef213e689f1
blob - a71291a8a875864f5ccd8038027c8802b676e636
blob + d28195aacaffa58b1addadf877df5bb787210fbd
--- parse.y
+++ parse.y
@@ -218,10 +218,15 @@ option : CHROOT string { conf.chroot = $2; }
| MIME STRING string {
yywarn("`mime MIME EXT' is deprecated and will be "
"removed in a future version, please use the new "
- "syntax: `map MIME to-ext EXT'");
+ "`types' block.");
add_mime(&conf.mime, $2, $3);
}
- | MAP string TOEXT string { add_mime(&conf.mime, $2, $4); }
+ | MAP string TOEXT string {
+ yywarn("`map mime to-ext' is deprecated and will be "
+ "removed in a future version, please use the new "
+ "`types' block.");
+ add_mime(&conf.mime, $2, $4);
+ }
| PORT NUM { conf.port = check_port_num($2); }
| PREFORK NUM { conf.prefork = check_prefork_num($2); }
| PROTOCOLS string {
Omar Polo