We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd7903 commit 5e84a98Copy full SHA for 5e84a98
pywsus.py
@@ -118,6 +118,14 @@ def _set_response(self, serveEXE=False):
118
self.send_header('X-Powered-By', 'ASP.NET')
119
self.end_headers()
120
121
+ def do_HEAD(self):
122
+ logging.debug('HEAD request,\nPath: {path}\nHeaders:\n{headers}\n'.format(path=self.path, headers=self.headers))
123
+
124
+ if self.path.find(".exe"):
125
+ logging.info("Requested: {path}".format(path=self.path))
126
127
+ self._set_response(True)
128
129
def do_GET(self):
130
logging.debug('GET request,\nPath: {path}\nHeaders:\n{headers}\n'.format(path=self.path, headers=self.headers))
131
0 commit comments