Changeset 74 for branches/follower

Show
Ignore:
Timestamp:
12/07/07 05:03:16 (13 months ago)
Author:
follower
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/follower/wiz810mj/src/demo/WizDemo2/WizDemo2.pde

    r73 r74  
    182182 
    183183  //strcpy((char *) buffer, "Content-Type: text/plain\n\nfoo!\n"); 
    184   strcpy((char *) buffer, "HTTP/1.1 200 OK\n\rContent-Type: text/html\n\r\n\r<html><body bgcolor='#000000'>foo!</body></html>\n\r"); 
     184  strcpy((char *) buffer, "HTTP/1.1 200 OK\nContent-Type: text/html\n\n<html><body bgcolor='#000000'>foo!</body></html>\n"); 
    185185  if (ledState) { 
    186    buffer[66] = 'F';  
     186   buffer[63] = 'F';  
    187187  } else { 
    188    buffer[68] = 'F';      
     188   buffer[65] = 'F';      
    189189  } 
    190190