Check User-Agent during POST

main
Bob Mottram 2021-06-20 15:16:04 +01:00
parent eab0a92af9
commit 3f653dc90b
1 changed files with 4 additions and 0 deletions

View File

@ -14130,6 +14130,10 @@ class PubServer(BaseHTTPRequestHandler):
self._400()
return
if self._blockedUserAgent():
self._400()
return
self.server.POSTbusy = True
if not self.headers.get('Content-type'):
print('Content-type header missing')