1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
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: no
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 );
}
|