You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe there is an error where users request the server root (without a page ou another element in the URL). The server sends page as text/plain> and not text/html
I did make some changes in code to force server send response as text/html, as you can see in this code (I added the line web_server.send_content_type("text/html");) in code bellow
I Apologize if this isn't the correct way to send this suggestion, but this is my very, very first time in GitHub
I believe there is an error where users request the server root (without a page ou another element in the URL). The server sends page as
text/plain>
and nottext/html
I did make some changes in code to force server send response as text/html, as you can see in this code (I added the line
web_server.send_content_type("text/html");
) in code bellowI Apologize if this isn't the correct way to send this suggestion, but this is my very, very first time in GitHub
boolean index_handler(TinyWebServer& web_server) { web_server.send_error_code(200); web_server.send_content_type("text/html"); web_server.end_headers(); web_server << F("Hello World!"); return true; }
The text was updated successfully, but these errors were encountered: