mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Fix for issue5040. Adding test for Content-Length
This commit is contained in:
		
							parent
							
								
									2ecd3c36b5
								
							
						
					
					
						commit
						20d114cad2
					
				
					 2 changed files with 29 additions and 1 deletions
				
			
		|  | @ -580,7 +580,7 @@ def handle_get(self): | |||
|              'explain' : explain | ||||
|             } | ||||
|         print 'Status: %d %s' % (code, message) | ||||
|         print 'Content-Type: text/html' | ||||
|         print 'Content-Type: %s' % BaseHTTPServer.DEFAULT_ERROR_CONTENT_TYPE | ||||
|         print 'Content-Length: %d' % len(response) | ||||
|         print | ||||
|         sys.stdout.write(response) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Senthil Kumaran
						Senthil Kumaran