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]

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]