This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: fix for http server


Ok - this is more like the real thing
 
Index: packages/net/httpd/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/httpd/current/ChangeLog,v
retrieving revision 1.9
diff -u -r1.9 ChangeLog
--- packages/net/httpd/current/ChangeLog 21 Oct 2003 18:53:27 -0000 1.9
+++ packages/net/httpd/current/ChangeLog 28 Feb 2004 00:28:19 -0000
@@ -1,3 +1,8 @@
+2004-02-23  Jeff Duncan  <jeffd@magtek.com>
+
+        * src/httpd.c (cyg_httpd_server): Fix http header by adding
+        newline after server name.
+        
 2003-10-21  Eric Doenges <Eric.Doenges@DynaPel.com>
 
  * src/monitor.c (cyg_monitor_memory): Check if the request
Index: packages/net/httpd/current/src/httpd.c
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/httpd/current/src/httpd.c,v
retrieving revision 1.4
diff -u -r1.4 httpd.c
--- packages/net/httpd/current/src/httpd.c 23 Sep 2003 11:40:15 -0000 1.4
+++ packages/net/httpd/current/src/httpd.c 28 Feb 2004 00:23:49 -0000
@@ -413,7 +413,7 @@
                                int content_length )
 {
     fputs( "HTTP/1.1 200 OK\n"
-           "Server: " CYGDAT_HTTPD_SERVER_ID,
+           "Server: " CYGDAT_HTTPD_SERVER_ID "\n",
            client );
 
     if( content_type != NULL )
 
 
 


________________________________

From: Jeff Duncan
Sent: Fri 2/27/2004 12:05 PM
To: 'ecos-patches@sources.redhat.com'
Subject: fix for http server



The http server header is missing a newline after the server name making some browsers miss the content type.  Sorry for the incomplete patch - I'm still learning how to use diff and cvs properly. 

==================== 

diff -rup c:\cygwin\opt\ecos\ecos\packages\net\httpd\old\src\/httpd.c c:\cygwin\opt\ecos\ecos\packages\net\httpd\current\src\/httpd.c

--- c:\cygwin\opt\ecos\ecos\packages\net\httpd\old\src\/httpd.c 2003-09-23 12:40:14.000000000 -0700 
+++ c:\cygwin\opt\ecos\ecos\packages\net\httpd\current\src\/httpd.c 2004-02-19 11:11:17.000000000 -0800 
@@ -413,7 +413,7 @@ __externC void cyg_http_start( FILE *cli 
                                int content_length ) 
 { 
     fputs( "HTTP/1.1 200 OK\n" 
-           "Server: " CYGDAT_HTTPD_SERVER_ID, 
+           "Server: " CYGDAT_HTTPD_SERVER_ID "\n", 
            client ); 
  
     if( content_type != NULL ) 

======================== 

Jeff 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]