1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 12:45:18 +03:00
aports/testing/sthttpd/libhttpd-c.patch
Francesco Colista de8633236f testing/sthttpd: new aport
Fixes #12657

This is an initial aport that needs test before being promoted
to community
2021-05-12 08:31:38 +00:00

34 lines
1,012 B
Diff

diff -Naur old/src/libhttpd.c new/src/libhttpd.c
--- old/src/libhttpd.c 2014-10-04 03:43:00.000000000 +0900
+++ new/src/libhttpd.c 2015-08-14 17:15:30.081099286 +0900
@@ -738,7 +738,7 @@
(void) my_snprintf( buf, sizeof(buf), "\
<HTML>\n\
<HEAD><TITLE>%d %s</TITLE></HEAD>\n\
-<BODY BGCOLOR=\"#cc9999\" TEXT=\"#000000\" LINK=\"#2020ff\" VLINK=\"#4040cc\">\n\
+<BODY>\n\
<H2>%d %s</H2>\n",
status, title, status, title );
add_response( hc, buf );
@@ -763,11 +763,8 @@
char buf[1000];
(void) my_snprintf( buf, sizeof(buf), "\
-<HR>\n\
-<ADDRESS><A HREF=\"%s\">%s</A></ADDRESS>\n\
</BODY>\n\
-</HTML>\n",
- SERVER_ADDRESS, EXPOSED_SERVER_SOFTWARE );
+</HTML>\n" );
add_response( hc, buf );
}
@@ -2768,7 +2765,7 @@
(void) fprintf( fp, "\
<HTML>\n\
<HEAD><TITLE>Index of %.80s</TITLE></HEAD>\n\
-<BODY BGCOLOR=\"#99cc99\" TEXT=\"#000000\" LINK=\"#2020ff\" VLINK=\"#4040cc\">\n\
+<BODY>\n\
<H2>Index of %.80s</H2>\n\
<PRE>\n\
mode links bytes last-changed name\n\