From f1d70433439c3670cdb41c800f5b5b8cd24bec06 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Mon, 20 Nov 2023 21:58:35 +0100 Subject: [PATCH] fix --- rowers/views/apiviews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/views/apiviews.py b/rowers/views/apiviews.py index 63149423..6c7f9979 100644 --- a/rowers/views/apiviews.py +++ b/rowers/views/apiviews.py @@ -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")