mirror of
				https://github.com/django/daphne.git
				synced 2025-11-04 01:27:33 +03:00 
			
		
		
		
	Add conventional request.META['PATH_INFO'] - fixes benjaoming/django-nyt#27 (#375)
This commit is contained in:
		
							parent
							
								
									58cc3c845d
								
							
						
					
					
						commit
						06fd1f8ada
					
				| 
						 | 
					@ -55,6 +55,7 @@ class AsgiRequest(http.HttpRequest):
 | 
				
			||||||
            "REQUEST_METHOD": self.method,
 | 
					            "REQUEST_METHOD": self.method,
 | 
				
			||||||
            "QUERY_STRING": self.message.get('query_string', ''),
 | 
					            "QUERY_STRING": self.message.get('query_string', ''),
 | 
				
			||||||
            "SCRIPT_NAME": self.script_name,
 | 
					            "SCRIPT_NAME": self.script_name,
 | 
				
			||||||
 | 
					            "PATH_INFO": self.path_info,
 | 
				
			||||||
            # Old code will need these for a while
 | 
					            # Old code will need these for a while
 | 
				
			||||||
            "wsgi.multithread": True,
 | 
					            "wsgi.multithread": True,
 | 
				
			||||||
            "wsgi.multiprocess": True,
 | 
					            "wsgi.multiprocess": True,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user