Skip to content

Commit fce2277

Browse files
committed
Fix HTTP message formatting to be RFC2616 (section 5.1) compliant, and hence so they will pass through a transparent Squid proxy
1 parent 9aac8bb commit fce2277

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sck_beta_v0_9/Constants.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static char buffer[buffer_length];
215215
// Basic Server Posts to the SmartCitizen Platform - EndPoint: http://data.smartcitizen.me/add
216216
static char* WEB[8]={
217217
"data.smartcitizen.me",
218-
"PUT /add HTTP/1.1 \n",
218+
"PUT /add HTTP/1.1\n",
219219
"Host: data.smartcitizen.me \n",
220220
"User-Agent: SmartCitizen \n",
221221
"X-SmartCitizenMacADDR: ",
@@ -226,7 +226,7 @@ static char* WEB[8]={
226226
// Time server request - EndPoint: http://data.smartcitizen.me/datetime
227227
static char* WEBTIME[3]={
228228
/*Servidor de tiempo*/
229-
"GET /datetime HTTP/1.1 \n",
229+
"GET /datetime HTTP/1.1\n",
230230
"Host: data.smartcitizen.me \n",
231231
"User-Agent: SmartCitizen \n\n"
232232
};

0 commit comments

Comments
 (0)