X-Git-Url: https://gitweb.ps.run/matrix_esp_thesis/blobdiff_plain/a6eff84624ab1f3786d02aa2ec740b9a88090d94..4c72c6901e007414aebb4cb6534c1a49d63558b0:/src/matrix_http_mongoose.c diff --git a/src/matrix_http_mongoose.c b/src/matrix_http_mongoose.c index 17edbc8..a514f72 100644 --- a/src/matrix_http_mongoose.c +++ b/src/matrix_http_mongoose.c @@ -56,7 +56,7 @@ MatrixHttpCallback( conn->dataLen = hm->body.len; conn->dataReceived = true; - printf("received[%d]:\n%.*s\n", conn->dataLen, conn->dataLen, conn->data); + //printf("received[%d]:\n%.*s\n", conn->dataLen, conn->dataLen, conn->data); } if (ev == MG_EV_CLOSE) { @@ -86,7 +86,7 @@ MatrixHttpConnect( MatrixHttpConnection * conn = (MatrixHttpConnection *)client->httpUserData; - struct mg_connection * c = + //struct mg_connection * c = mg_http_connect(&conn->mgr, client->server, MatrixHttpCallback, client); while (! conn->connected) @@ -220,20 +220,6 @@ MatrixHttpPut( else authorizationHeader[0] = '\0'; - printf("PUT %s HTTP/1.0\r\n" - "Host: %.*s\r\n" - "%s" - "Content-Type: application/json\r\n" - "Content-Length: %d\r\n" - "\r\n" - "%s" - "\r\n", - url, - host.len, host.ptr, - authorizationHeader, - strlen(requestBuffer), - requestBuffer); - mg_printf(conn->connection, "PUT %s HTTP/1.0\r\n" "Host: %.*s\r\n"