mirror of https://gitlab.com/bashrc2/epicyon
Check User-Agent during POST
parent
eab0a92af9
commit
3f653dc90b
|
@ -14130,6 +14130,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._400()
|
self._400()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if self._blockedUserAgent():
|
||||||
|
self._400()
|
||||||
|
return
|
||||||
|
|
||||||
self.server.POSTbusy = True
|
self.server.POSTbusy = True
|
||||||
if not self.headers.get('Content-type'):
|
if not self.headers.get('Content-type'):
|
||||||
print('Content-type header missing')
|
print('Content-type header missing')
|
||||||
|
|
Loading…
Reference in New Issue