Project

General

Profile

Bug #2143 ยป patch-src-request.c

majinboo, 2010-12-28 15:44

 
1
--- src/request.c.orig	2010-12-28 14:44:38.000000000 +0100
2
+++ src/request.c	2010-12-28 14:45:30.000000000 +0100
3
@@ -1102,23 +1102,23 @@
4
 	}
5
 
6
 	/* check hostname field if it is set */
7
-	if (NULL != con->request.http_host &&
8
-	    0 != request_check_hostname(srv, con, con->request.http_host)) {
9
-
10
-		if (srv->srvconf.log_request_header_on_error) {
11
-			log_error_write(srv, __FILE__, __LINE__, "s",
12
-					"Invalid Hostname -> 400");
13
-			log_error_write(srv, __FILE__, __LINE__, "Sb",
14
-					"request-header:\n",
15
-					con->request.request);
16
-		}
17
-
18
-		con->http_status = 400;
19
-		con->response.keep_alive = 0;
20
-		con->keep_alive = 0;
21
-
22
-		return 0;
23
-	}
24
+//	if (NULL != con->request.http_host &&
25
+//	    0 != request_check_hostname(srv, con, con->request.http_host)) {
26
+//
27
+//		if (srv->srvconf.log_request_header_on_error) {
28
+//			log_error_write(srv, __FILE__, __LINE__, "s",
29
+//					"Invalid Hostname -> 400");
30
+//			log_error_write(srv, __FILE__, __LINE__, "Sb",
31
+//					"request-header:\n",
32
+//					con->request.request);
33
+//		}
34
+//
35
+//		con->http_status = 400;
36
+//		con->response.keep_alive = 0;
37
+//		con->keep_alive = 0;
38
+//
39
+//		return 0;
40
+//	}
41
 
42
 	switch(con->request.http_method) {
43
 	case HTTP_METHOD_GET:
    (1-1/1)