Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

fix for wrong http status header #42

Merged
merged 1 commit into from
Dec 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/EthernetWebServer-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ void EthernetWebServer::_prepareHeader(String& response, int code, const char* c
EWString aResponse = fromString(response);

aResponse = "HTTP/1." + fromString(String(_currentVersion)) + " ";
aResponse += code;
aResponse += String(code).c_str();
aResponse += " ";
aResponse += fromString(_responseCodeToString(code));
aResponse += RETURN_NEWLINE;
Expand Down Expand Up @@ -462,7 +462,7 @@ void EthernetWebServer::_prepareHeader(String& response, int code, const char* c
void EthernetWebServer::_prepareHeader(EWString& response, int code, const char* content_type, size_t contentLength)
{
response = "HTTP/1." + fromString(String(_currentVersion)) + " ";
response += code;
response += String(code).c_str();
response += " ";
response += fromString(_responseCodeToString(code));
response += RETURN_NEWLINE;
Expand Down