forked from indymedia/epicyon
Check content type
parent
d2bc9b52b4
commit
a8c72965f5
|
@ -3510,6 +3510,12 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
print('POST size too large')
|
||||
return None
|
||||
|
||||
if not headers.get('Content-Type'):
|
||||
if headers.get('Content-type'):
|
||||
headers['Content-Type']=headers['Content-type']
|
||||
elif headers.get('content-type'):
|
||||
headers['Content-Type']=headers['content-type']
|
||||
if headers.get('Content-Type'):
|
||||
if ' boundary=' in headers['Content-Type']:
|
||||
boundary=headers['Content-Type'].split('boundary=')[1]
|
||||
if ';' in boundary:
|
||||
|
|
Loading…
Reference in New Issue