diff options
Diffstat (limited to 'doc/examples/largepost.c')
-rw-r--r-- | doc/examples/largepost.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c index 6cfaf833..da9c1c56 100644 --- a/doc/examples/largepost.c +++ b/doc/examples/largepost.c | |||
@@ -66,14 +66,14 @@ struct connection_info_struct | |||
66 | }; | 66 | }; |
67 | 67 | ||
68 | 68 | ||
69 | const char *askpage = | 69 | #define ASKPAGE \ |
70 | "<html><body>\n\ | 70 | "<html><body>\n" \ |
71 | Upload a file, please!<br>\n\ | 71 | "Upload a file, please!<br>\n" \ |
72 | There are %u clients uploading at the moment.<br>\n\ | 72 | "There are %u clients uploading at the moment.<br>\n" \ |
73 | <form action=\"/filepost\" method=\"post\" enctype=\"multipart/form-data\">\n\ | 73 | "<form action=\"/filepost\" method=\"post\" enctype=\"multipart/form-data\">\n" \ |
74 | <input name=\"file\" type=\"file\">\n\ | 74 | "<input name=\"file\" type=\"file\">\n" \ |
75 | <input type=\"submit\" value=\" Send \"></form>\n\ | 75 | "<input type=\"submit\" value=\" Send \"></form>\n" \ |
76 | </body></html>"; | 76 | "</body></html>" |
77 | const char *busypage = | 77 | const char *busypage = |
78 | "<html><body>This server is busy, please try again later.</body></html>"; | 78 | "<html><body>This server is busy, please try again later.</body></html>"; |
79 | const char *completepage = | 79 | const char *completepage = |
@@ -271,7 +271,7 @@ answer_to_connection (void *cls, | |||
271 | 271 | ||
272 | snprintf (buffer, | 272 | snprintf (buffer, |
273 | sizeof (buffer), | 273 | sizeof (buffer), |
274 | askpage, | 274 | ASKPAGE, |
275 | nr_of_uploading_clients); | 275 | nr_of_uploading_clients); |
276 | return send_page (connection, | 276 | return send_page (connection, |
277 | buffer, | 277 | buffer, |