Commits

thrapt committed cc19ea0 Merge

Merged LaNMaSteR53/recon-ng into master

  • Participants
  • Parent commits a6807b6, 9fb2868

Comments (0)

Files changed (1)

File core/framework.py

             req = urllib2.Request(url, headers=headers)
         elif method == 'POST':
             req = urllib2.Request(url, data=payload, headers=headers)
+        elif method == 'HEAD':
+            if payload: url = '%s?%s' % (url, payload)
+            req = urllib2.Request(url, headers=headers)
+            req.get_method = lambda : 'HEAD'
         else:
             raise Exception('Request method \'%s\' is not a supported method.' % (method))
         try: