bug fix: allow file with spaces to be uploaded

This commit is contained in:
Usman Nasir
2020-02-26 11:31:19 +05:00
parent 5e2f9aa085
commit fdc2134c7e
3 changed files with 19 additions and 20 deletions

View File

@@ -54,13 +54,6 @@ class secMiddleware:
if request.path.find('gitNotify') > -1:
break
# if request.path.find('users') > -1 or request.path.find('firewall') > -1 or request.path.find('servicesAction') > -1 or request.path.find('sslForHostName') > -1:
# logging.writeToFile(request.body)
# final_dic = {'error_message': "Data supplied is not accepted.",
# "errorMessage": "Data supplied is not accepted."}
# final_json = json.dumps(final_dic)
# return HttpResponse(final_json)
if type(value) == str or type(value) == bytes:
pass
else: