From 3d6b27c0e35b966bc6c54d36a379b1670dd8b9c1 Mon Sep 17 00:00:00 2001 From: follower Date: Fri, 7 Dec 2007 13:03:16 +0000 Subject: [PATCH] Fix for Safari not displaying the response correctly--the issue was it displayed the Content-Type header in the page--seemingly due to using '\r' in the response (I thought this was required...). Also change the buffer offset used to change the page background colour to match the corrected response string. git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@74 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b --- branches/follower/wiz810mj/src/demo/WizDemo2/WizDemo2.pde | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/branches/follower/wiz810mj/src/demo/WizDemo2/WizDemo2.pde b/branches/follower/wiz810mj/src/demo/WizDemo2/WizDemo2.pde index a2e234c..8b00e8f 100644 --- a/branches/follower/wiz810mj/src/demo/WizDemo2/WizDemo2.pde +++ b/branches/follower/wiz810mj/src/demo/WizDemo2/WizDemo2.pde @@ -181,11 +181,11 @@ void sendPrompt(uint8_t *buffer) { // {Socket targetSocket, ) { void sendBanner(uint8_t *buffer, int ledState) { // {Socket targetSocket, ) { //strcpy((char *) buffer, "Content-Type: text/plain\n\nfoo!\n"); - strcpy((char *) buffer, "HTTP/1.1 200 OK\n\rContent-Type: text/html\n\r\n\rfoo!\n\r"); + strcpy((char *) buffer, "HTTP/1.1 200 OK\nContent-Type: text/html\n\nfoo!\n"); if (ledState) { - buffer[66] = 'F'; + buffer[63] = 'F'; } else { - buffer[68] = 'F'; + buffer[65] = 'F'; } Serial.print("send result: ");