mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Fix test_xmlrpc and make the CGI handler work with no CONTENT_LENGTH.
This commit is contained in:
		
							parent
							
								
									c53306c217
								
							
						
					
					
						commit
						61fce3877c
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		|  | @ -600,7 +600,7 @@ def handle_request(self, request_text = None): | |||
|             # POST data is normally available through stdin | ||||
|             try: | ||||
|                 length = int(os.environ.get('CONTENT_LENGTH', None)) | ||||
|             except ValueError: | ||||
|             except (TypeError, ValueError): | ||||
|                 length = -1 | ||||
|             if request_text is None: | ||||
|                 request_text = sys.stdin.read(length) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl