Closes https://github.com/espressif/esp-idf/issues/2527
ra->sd = sd;
/* Set defaults */
ra->status = (char *)HTTPD_200;
- ra->content_type = (char *)HTTPD_TYPE_JSON;
+ ra->content_type = (char *)HTTPD_TYPE_TEXT;
ra->first_chunk_sent = false;
/* Copy session info to the request */
r->sess_ctx = sd->ctx;
if not test_val("data", "Hello World!", resp.read().decode()):
conn.close()
return False
- if not test_val("data", "application/json", resp.getheader('Content-Type')):
+ if not test_val("data", "text/html", resp.getheader('Content-Type')):
conn.close()
return False
Utility.console_log("Success")