View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010333 | libmicrohttpd | documentation | public | 2025-09-02 21:57 | 2025-09-02 21:58 |
Reporter | xtforever | Assigned To | |||
Priority | normal | Severity | block | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 1.0.0 | ||||
Summary | 0010333: example/simplepost.c not working | ||||
Description | iterate_post should return MHD_YES | ||||
Steps To Reproduce | run examples/samplepost | ||||
Tags | No tags attached. | ||||
|
Working version: static enum MHD_Result iterate_post (void *coninfo_cls, enum MHD_ValueKind kind, const char *key, const char *filename, const char *content_type, const char *transfer_encoding, const char *data, uint64_t off, size_t size) { struct connection_info_struct *con_info = coninfo_cls; (void) kind; /* Unused. Silent compiler warning. */ (void) filename; /* Unused. Silent compiler warning. */ (void) content_type; /* Unused. Silent compiler warning. */ (void) transfer_encoding; /* Unused. Silent compiler warning. */ (void) off; /* Unused. Silent compiler warning. */ if ( strcmp (key, "name") ) return MHD_YES; if( size < 0) return MHD_NO; if( size > MAXNAMESIZE ) return MHD_NO; asprintf (&con_info->answerstring, GREETINGPAGE, data); return MHD_YES; } |