Self hosted FLOSS fitness/workout, nutrition and weight tracker
Simplify process_response
Roland Geiderf741355b2944
diff --git a/wger/utils/middleware.py b/wger/utils/middleware.pyindex 1c7d90fc2..a44e90ec4 100644--- a/wger/utils/middleware.py+++ b/wger/utils/middleware.py@@ -101,9 +101,7 @@ class RobotsExclusionMiddleware(object):# Don't set it if it's already in the responseif check_current_request(request) and response.get('X-Robots-Tag', None) is None:response['X-Robots-Tag'] = 'noindex, nofollow'- return response- else:- return response+ return responseclass JavascriptAJAXRedirectionMiddleware(object):