From fce2277b24356753770489010b91ed277827a904 Mon Sep 17 00:00:00 2001 From: craigm Date: Tue, 23 Jun 2015 13:05:08 +0100 Subject: [PATCH] Fix HTTP message formatting to be RFC2616 (section 5.1) compliant, and hence so they will pass through a transparent Squid proxy --- sck_beta_v0_9/Constants.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sck_beta_v0_9/Constants.h b/sck_beta_v0_9/Constants.h index c505f14..e89fd49 100644 --- a/sck_beta_v0_9/Constants.h +++ b/sck_beta_v0_9/Constants.h @@ -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: ", @@ -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" };