Private
Public Access
1
0

Merge branch 'release/v20.3.4'

This commit is contained in:
2023-11-20 21:58:47 +01:00

View File

@@ -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")