mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	
							parent
							
								
									810f807b1b
								
							
						
					
					
						commit
						6ac7d7c80b
					
				
					 4 changed files with 18 additions and 1 deletions
				
			
		|  | @ -408,6 +408,9 @@ class Morsel(dict): | |||
|     # For historical reasons, these attributes are also reserved: | ||||
|     #   expires | ||||
|     # | ||||
|     # This is an extension from Microsoft: | ||||
|     #   httponly | ||||
|     # | ||||
|     # This dictionary provides a mapping from the lowercase | ||||
|     # variant on the left to the appropriate traditional | ||||
|     # formatting on the right. | ||||
|  | @ -417,6 +420,7 @@ class Morsel(dict): | |||
|                    "domain"      : "Domain", | ||||
|                    "max-age" : "Max-Age", | ||||
|                    "secure"      : "secure", | ||||
|                    "httponly"  : "httponly", | ||||
|                    "version" : "Version", | ||||
|                    } | ||||
| 
 | ||||
|  | @ -499,6 +503,8 @@ def OutputString(self, attrs=None): | |||
|                 RA("%s=%d" % (self._reserved[K], V)) | ||||
|             elif K == "secure": | ||||
|                 RA(str(self._reserved[K])) | ||||
|             elif K == "httponly": | ||||
|                 RA(str(self._reserved[K])) | ||||
|             else: | ||||
|                 RA("%s=%s" % (self._reserved[K], V)) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson