static
PT_THREAD(handle_output(struct httpd_state *s))
{
+ const char *str= NULL;
PT_BEGIN(&s->outputpt);
if (s->method == OPTIONS) {
if (strcmp(s->filename, "/query") == 0) { // query short cut
PT_WAIT_THREAD(&s->outputpt, send_headers(s, http_header_200));
- PSOCK_SEND_STR(&s->sout, get_query_string());
+ str= get_query_string();
+ PSOCK_SEND_STR(&s->sout, str);
} else if (!fs_open(s)) { // Note this has the side effect of opening the file
DEBUG_PRINTF("404 file not found\n");