mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-26 05:31:04 +03:00 
			
		
		
		
	Fixing a bug noticed during the yesterday's AppSecEU presentation (--headers='user-agent:foobar*' was not working properly)
This commit is contained in:
		
							parent
							
								
									3bbe02a714
								
							
						
					
					
						commit
						88b992ad83
					
				|  | @ -338,6 +338,9 @@ class Connect(object): | ||||||
| 
 | 
 | ||||||
|             if auxHeaders: |             if auxHeaders: | ||||||
|                 for key, item in auxHeaders.items(): |                 for key, item in auxHeaders.items(): | ||||||
|  |                     for _ in headers.keys(): | ||||||
|  |                         if _.upper() == key.upper(): | ||||||
|  |                             del headers[_] | ||||||
|                     headers[key] = item |                     headers[key] = item | ||||||
| 
 | 
 | ||||||
|             for key, item in headers.items(): |             for key, item in headers.items(): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user