mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 16:07:55 +03:00 
			
		
		
		
	Minor patch
This commit is contained in:
		
							parent
							
								
									9d06b71862
								
							
						
					
					
						commit
						180ede0cb3
					
				|  | @ -355,14 +355,14 @@ class Connect(object): | |||
| 
 | ||||
|             post = unicodeencode(post, kb.pageEncoding) | ||||
| 
 | ||||
|             if method: | ||||
|             if method and method not in (HTTPMETHOD.GET, HTTPMETHOD.POST): | ||||
|                 method = unicodeencode(method) | ||||
|                 req = MethodRequest(url, post, headers) | ||||
|                 req.set_method(method) | ||||
|             else: | ||||
|                 req = urllib2.Request(url, post, headers) | ||||
| 
 | ||||
|             requestHeaders += "\n".join("%s: %s" % (key.capitalize() if isinstance(key, basestring) else key, getUnicode(value)) for (key, value) in req.header_items()) | ||||
|             requestHeaders += "\n".join("%s: %s" % (getUnicode(key.capitalize() if isinstance(key, basestring) else key), getUnicode(value)) for (key, value) in req.header_items()) | ||||
| 
 | ||||
|             if not getRequestHeader(req, HTTP_HEADER.COOKIE) and conf.cj: | ||||
|                 conf.cj._policy._now = conf.cj._now = int(time.time()) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user