fix
This commit is contained in:
@@ -248,7 +248,7 @@ def strokedata_tcx(request):
|
||||
dologging('apilog.log','GET request to TCX endpoint')
|
||||
return HttpResponseNotAllowed("Method not supported") # pragma: no cover
|
||||
|
||||
if request.content_type.lower() != 'application/xml':
|
||||
if 'application/xml' not in request.content_type.lower():
|
||||
dologging('apilog.log','POST data not application/xml, request to TCX endpoint')
|
||||
dologging('apilog.log', request.content_type.lower())
|
||||
return HttpResponseNotAllowed("Need application/xml")
|
||||
|
||||
Reference in New Issue
Block a user