Ticket #9857: 9857.patch
File 9857.patch, 811 bytes (added by , 16 years ago) |
---|
-
django/forms/fields.py
558 558 return value 559 559 if self.verify_exists: 560 560 import urllib2 561 import socket 561 562 headers = { 562 563 "Accept": "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", 563 564 "Accept-Language": "en-us,en;q=0.5", … … 565 566 "Connection": "close", 566 567 "User-Agent": self.user_agent, 567 568 } 569 socket.setdefaulttimeout(10) 568 570 try: 569 571 req = urllib2.Request(value, None, headers) 570 572 u = urllib2.urlopen(req)