|
@@ -85,6 +85,16 @@ ahc_echo (void *cls,
|
|
|
(void) version; (void) upload_data; /* Unused. Silent compiler warning. */
|
|
(void) version; (void) upload_data; /* Unused. Silent compiler warning. */
|
|
|
(void) upload_data_size; (void) unused; /* Unused. Silent compiler warning. */
|
|
(void) upload_data_size; (void) unused; /* Unused. Silent compiler warning. */
|
|
|
|
|
|
|
|
|
|
+ if (NULL == url)
|
|
|
|
|
+ fprintf (stderr, "The \"url\" parameter is NULL.\n");
|
|
|
|
|
+ if (NULL == method)
|
|
|
|
|
+ fprintf (stderr, "The \"method\" parameter is NULL.\n");
|
|
|
|
|
+ if (NULL == version)
|
|
|
|
|
+ fprintf (stderr, "The \"version\" parameter is NULL.\n");
|
|
|
|
|
+ if (NULL == upload_data_size)
|
|
|
|
|
+ fprintf (stderr, "The \"upload_data_size\" parameter is NULL.\n");
|
|
|
|
|
+ if ((0 != *upload_data_size) && (NULL == upload_data))
|
|
|
|
|
+ fprintf (stderr, "Upload data is NULL with non-zero size.\n");
|
|
|
if (0 != strcmp (me, method))
|
|
if (0 != strcmp (me, method))
|
|
|
return MHD_NO; /* unexpected method */
|
|
return MHD_NO; /* unexpected method */
|
|
|
response = MHD_create_response_from_buffer (strlen (url),
|
|
response = MHD_create_response_from_buffer (strlen (url),
|