summaryrefslogtreecommitdiff
path: root/source/sv_http.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-01-04 18:19:19 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-01-04 18:19:19 +0000
commit348024fbd44d37f073e7b2d4a19a7b555c3dd684 (patch)
tree18e475eec42589304ebc4cf863242c1751bb4ddb /source/sv_http.c
parent87573a3f6ae7400f597b74318bdaf161edfa225c (diff)
Added `sv_mvd_encoding' variable, defaults to gzip content encoding.
Allow unicast configstrings in CS_GENERAL range only. When parsing mvd_configstring, reset corresponding unicast configstrings. Removed `Status page of' prefix. Highlight MVD stream links only when `sv_mvd_enable' is non-zero.
Diffstat (limited to 'source/sv_http.c')
-rw-r--r--source/sv_http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/sv_http.c b/source/sv_http.c
index f09d3f9..6df031e 100644
--- a/source/sv_http.c
+++ b/source/sv_http.c
@@ -123,7 +123,7 @@ static void SV_GetStatus( void ) {
SV_HttpHeader( buffer );
buffer[len] = 0;
- SV_HttpPrintf( "<h1>Status page of %s</h1>", buffer );
+ SV_HttpPrintf( "<h1>%s</h1>", buffer );
time( &clock );
@@ -343,11 +343,11 @@ void SV_HttpWrite( tcpClient_t *client, void *data, int length ) {
}
return;
}
-#else
+#endif
+
if( !FIFO_TryWrite( fifo, data, length ) ) {
SV_HttpDrop( client, "overflowed" );
}
-#endif
}
void SV_HttpFinish( tcpClient_t *client ) {