This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
fix for http server
- From: "Jeff Duncan" <Jeffd at Magtek dot com>
- To: <ecos-patches at sources dot redhat dot com>
- Date: Fri, 27 Feb 2004 12:05:35 -0800
- 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