diff --git a/RestClient.cpp b/RestClient.cpp index 6eac205..33cdc0d 100644 --- a/RestClient.cpp +++ b/RestClient.cpp @@ -77,28 +77,29 @@ int RestClient::request(const char* method, String path, String body){ requestString += " "; requestString += path; requestString += " HTTP/1.1"; - requestString += "\n"; + requestString += "\r\n"; for(int i=0; iprint(requestString); + HTTP_DEBUG_PRINT(requestString); // make sure you've sent all bytes. Ugly hack. // TODO: check output buffer instead?