mirror of
				https://github.com/openresty/openresty.git
				synced 2024-10-13 00:29:41 +00:00 
			
		
		
		
	upgraded the nginx core 1.15.8.
This commit is contained in:
		
							
								
								
									
										19
									
								
								patches/nginx-1.15.8-proxy_host_port_vars.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								patches/nginx-1.15.8-proxy_host_port_vars.patch
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,19 @@
 | 
			
		||||
--- nginx-1.15.8/src/http/modules/ngx_http_proxy_module.c	2017-07-16 14:02:51.000000000 +0800
 | 
			
		||||
+++ nginx-1.15.8-patched/src/http/modules/ngx_http_proxy_module.c	2017-07-16 14:02:51.000000000 +0800
 | 
			
		||||
@@ -793,13 +793,13 @@ static ngx_keyval_t  ngx_http_proxy_cach
 | 
			
		||||
 static ngx_http_variable_t  ngx_http_proxy_vars[] = {
 | 
			
		||||
 
 | 
			
		||||
     { ngx_string("proxy_host"), NULL, ngx_http_proxy_host_variable, 0,
 | 
			
		||||
-      NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOCACHEABLE|NGX_HTTP_VAR_NOHASH, 0 },
 | 
			
		||||
+      NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOCACHEABLE, 0 },
 | 
			
		||||
 
 | 
			
		||||
     { ngx_string("proxy_port"), NULL, ngx_http_proxy_port_variable, 0,
 | 
			
		||||
-      NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOCACHEABLE|NGX_HTTP_VAR_NOHASH, 0 },
 | 
			
		||||
+      NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOCACHEABLE, 0 },
 | 
			
		||||
 
 | 
			
		||||
     { ngx_string("proxy_add_x_forwarded_for"), NULL,
 | 
			
		||||
-      ngx_http_proxy_add_x_forwarded_for_variable, 0, NGX_HTTP_VAR_NOHASH, 0 },
 | 
			
		||||
+      ngx_http_proxy_add_x_forwarded_for_variable, 0, 0, 0 },
 | 
			
		||||
 
 | 
			
		||||
 #if 0
 | 
			
		||||
     { ngx_string("proxy_add_via"), NULL, NULL, 0, NGX_HTTP_VAR_NOHASH, 0 },
 | 
			
		||||
		Reference in New Issue
	
	Block a user