diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-09-16 19:57:58 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-09-16 19:57:58 +0000 |
commit | e68f49dd90d1650880d7124ec0a909b49805a83c (patch) | |
tree | fb50637055786c87caf262f1d58b1fb8ebe6025c /source/sv_http.c | |
parent | a9eefaa6dd9de85d28626fd2f141a38a3148caed (diff) |
MVD client now makes sure mapfile exists before doing CM_LoadMap.
Fixed MVD client not being killed in case of Com_Error resulting in a crash.
Made server HTML output pass formal validation.
Fixed COM_AppendExtension.
Pack usercmd button mask into 3 bits instead of 8.
Bumped minor Q2PRO protocol version.
Diffstat (limited to 'source/sv_http.c')
-rw-r--r-- | source/sv_http.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/sv_http.c b/source/sv_http.c index a7f566d..f05b79e 100644 --- a/source/sv_http.c +++ b/source/sv_http.c @@ -27,7 +27,7 @@ tcpClient_t *http_client; void SV_HttpHeader( const char *title ) { SV_HttpPrintf( - "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">" + "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 3.2//EN\">" "<html><head><title>%s</title></head><body>", title ); } @@ -48,7 +48,7 @@ void SV_HttpReject( const char *error, const char *reason ) { SV_HttpPrintf( "%s", http_header ); } if( reason && http_client->method != HTTP_METHOD_HEAD ) { - SV_HttpPrintf( "Content-Type: text/html\r\n" ); + SV_HttpPrintf( "Content-Type: text/html; charset=us-ascii\r\n" ); } SV_HttpPrintf( "\r\n" ); @@ -84,7 +84,7 @@ static void uri_status( const char *uri ) { } SV_HttpPrintf( - "Content-Type: text/html\r\n" + "Content-Type: text/html; charset=us-ascii\r\n" // "Content-Encoding: deflate\r\n" "\r\n" ); |