mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
HTTP Server : Default content type of response should be HTTPD_TYPE_TEXT
Closes https://github.com/espressif/esp-idf/issues/2527
This commit is contained in:
@@ -341,7 +341,7 @@ def get_hello(dut, port):
|
||||
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")
|
||||
|
Reference in New Issue
Block a user