Skip to content

Commit

Permalink
Fix HTTP message formatting to be RFC2616 (section 5.1) compliant, an…
Browse files Browse the repository at this point in the history
…d hence so they will pass through a transparent Squid proxy
  • Loading branch information
cmacdonald committed Jun 23, 2015
1 parent 9aac8bb commit fce2277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sck_beta_v0_9/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static char buffer[buffer_length];
// Basic Server Posts to the SmartCitizen Platform - EndPoint: http://data.smartcitizen.me/add
static char* WEB[8]={
"data.smartcitizen.me",
"PUT /add HTTP/1.1 \n",
"PUT /add HTTP/1.1\n",
"Host: data.smartcitizen.me \n",
"User-Agent: SmartCitizen \n",
"X-SmartCitizenMacADDR: ",
Expand All @@ -226,7 +226,7 @@ static char* WEB[8]={
// Time server request - EndPoint: http://data.smartcitizen.me/datetime
static char* WEBTIME[3]={
/*Servidor de tiempo*/
"GET /datetime HTTP/1.1 \n",
"GET /datetime HTTP/1.1\n",
"Host: data.smartcitizen.me \n",
"User-Agent: SmartCitizen \n\n"
};
Expand Down

0 comments on commit fce2277

Please sign in to comment.