diff options
Diffstat (limited to 'src/examples/demo_https.c')
-rw-r--r-- | src/examples/demo_https.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c index 1dff3ee9..ad986148 100644 --- a/src/examples/demo_https.c +++ b/src/examples/demo_https.c | |||
@@ -668,7 +668,7 @@ return_directory_response (struct MHD_Connection *connection) | |||
668 | * @param upload_data data from upload (PUT/POST) | 668 | * @param upload_data data from upload (PUT/POST) |
669 | * @param upload_data_size number of bytes in "upload_data" | 669 | * @param upload_data_size number of bytes in "upload_data" |
670 | * @param ptr our context | 670 | * @param ptr our context |
671 | * @return MHD_YES on success, MHD_NO to drop connection | 671 | * @return #MHD_YES on success, #MHD_NO to drop connection |
672 | */ | 672 | */ |
673 | static int | 673 | static int |
674 | generate_page (void *cls, | 674 | generate_page (void *cls, |
@@ -694,7 +694,6 @@ generate_page (void *cls, | |||
694 | if (0 != strcmp (method, MHD_HTTP_METHOD_GET)) | 694 | if (0 != strcmp (method, MHD_HTTP_METHOD_GET)) |
695 | return MHD_NO; /* unexpected method (we're not polite...) */ | 695 | return MHD_NO; /* unexpected method (we're not polite...) */ |
696 | fd = -1; | 696 | fd = -1; |
697 | |||
698 | if ( (NULL == strstr (&url[1], "..")) && | 697 | if ( (NULL == strstr (&url[1], "..")) && |
699 | ('/' != url[1]) ) | 698 | ('/' != url[1]) ) |
700 | { | 699 | { |