diff options
-rw-r--r-- | omaha_server/omaha_server/middlewares.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/omaha_server/omaha_server/middlewares.py b/omaha_server/omaha_server/middlewares.py index d51d08a..d26e6f3 100644 --- a/omaha_server/omaha_server/middlewares.py +++ b/omaha_server/omaha_server/middlewares.py @@ -46,7 +46,7 @@ class CUP2Middleware(object): return HttpResponse(msg, status=400, content_type="text/html; charset=utf-8") def process_response(self, request, response): - if self.is_cup2_request(request) and response.status_code // 100 == 2: + if getattr(settings, 'CUP_REQUEST_VALIDATION', False) and self.is_cup2_request(request) and response.status_code // 100 == 2: self.sign_cup2_response(request, response) return response |