mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Patch #1417555: SimpleHTTPServer now returns Last-Modified headers.
This commit is contained in:
		
							parent
							
								
									bcd548bdb2
								
							
						
					
					
						commit
						5d076961e2
					
				
					 4 changed files with 21 additions and 8 deletions
				
			
		|  | @ -85,7 +85,9 @@ def send_head(self): | |||
|             return None | ||||
|         self.send_response(200) | ||||
|         self.send_header("Content-type", ctype) | ||||
|         self.send_header("Content-Length", str(os.fstat(f.fileno())[6])) | ||||
|         fs = os.fstat(f.fileno()) | ||||
|         self.send_header("Content-Length", str(fs[6])) | ||||
|         self.send_header("Last-Modified", self.date_time_string(fs.st_mtime)) | ||||
|         self.end_headers() | ||||
|         return f | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl