Description: Fixes typo describing maxage config option
 This was wrongly documented as maxage when source code expects max_age.
Author: Alexandru Mihail alexandru.mihail2897@gmail.com
Origin: maintainer
Forwarded: yes
Last-Update: 2024-01-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/mini_httpd.8
+++ b/mini_httpd.8
@@ -28,7 +28,7 @@
 .RB [ -P
 .IR P3P ]
 .RB [ -M
-.IR maxage ]
+.IR max_age ]
 .RB [ -S ]
 .RB [ -E
 .IR certfile ]
@@ -169,7 +169,7 @@
 An equivalent "Expires" header is also generated.
 The default is no Cache-Control or Expires headers,
 which is just fine for most sites.
-The config-file option name for this flag is "maxage".
+The config-file option name for this flag is "max_age".
 .TP
 .B -S
 If mini_httpd is configured to do SSL/HTTPS, then the \-S flag is available
--- a/mini_httpd.c
+++ b/mini_httpd.c
@@ -875,9 +875,9 @@
 usage( void )
     {
 #ifdef USE_SSL
-    (void) fprintf( stderr, "usage:  %s [-C configfile] [-D] [-S] [-E certfile] [-Y cipher] [-p port] [-d dir] [-dd data_dir] [-c cgipat] [-u user] [-h hostname] [-r] [-v] [-l logfile] [-i pidfile] [-T charset] [-P P3P] [-M maxage]\n", argv0 );
+    (void) fprintf( stderr, "usage:  %s [-C configfile] [-D] [-S] [-E certfile] [-Y cipher] [-p port] [-d dir] [-dd data_dir] [-c cgipat] [-u user] [-h hostname] [-r] [-v] [-l logfile] [-i pidfile] [-T charset] [-P P3P] [-M max_age]\n", argv0 );
 #else /* USE_SSL */
-    (void) fprintf( stderr, "usage:  %s [-C configfile] [-D] [-p port] [-d dir] [-dd data_dir] [-c cgipat] [-u user] [-h hostname] [-r] [-v] [-l logfile] [-i pidfile] [-T charset] [-P P3P] [-M maxage]\n", argv0 );
+    (void) fprintf( stderr, "usage:  %s [-C configfile] [-D] [-p port] [-d dir] [-dd data_dir] [-c cgipat] [-u user] [-h hostname] [-r] [-v] [-l logfile] [-i pidfile] [-T charset] [-P P3P] [-M max_age]\n", argv0 );
 #endif /* USE_SSL */
     exit( 1 );
     }
