We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea890f commit 52ba6dcCopy full SHA for 52ba6dc
SlicingDice.cpp
@@ -57,12 +57,14 @@ void SlicingDice::makeRequest(const char* query){
57
58
client.println("POST /v1/" + testEndPoint + "index HTTP/1.1");
59
client.println(F("Content-Type: application/json"));
60
+ String hostString = String(host);
61
+ client.println("Host: " + hostString);
62
client.println("Authorization: " + apiKey);
63
client.println(F("Connection: close"));
64
65
String actualLength = String(strlen(query));
66
client.println("Content-Length: " + actualLength);
- client.println();
67
+ client.println();
68
client.println(query);
69
readResponse();
70
client.stop();
0 commit comments