]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
HTTP_GET_MSG: Do not resist on http 1.0
authorAndre <maan@p133.(none)>
Fri, 28 Apr 2006 20:40:32 +0000 (22:40 +0200)
committerAndre <maan@p133.(none)>
Fri, 28 Apr 2006 20:40:32 +0000 (22:40 +0200)
recent itunes for example sends 1.1. The obvious solution is to just
accept every client that sends at least 'GET / HTTP/'. Spotted by
Gerd Becker.

http.h

diff --git a/http.h b/http.h
index 5708c7b089559e4299f19f2a1e8fb9e60703ff8f..2542cdc113bb6f19c63d3ce36eacaf274ba03719 100644 (file)
--- a/http.h
+++ b/http.h
@@ -1,3 +1,3 @@
 /** \file http.h macros used by http_send and http_recv */
 #define HTTP_OK_MSG "HTTP/1.0 200 OK\r\n\r\n"
-#define HTTP_GET_MSG "GET / HTTP/1.0"
+#define HTTP_GET_MSG "GET / HTTP/"