[odrs-web] Fix setting the cache control property



commit 5d46327bee153aa8fd3646c53d00566c0379d445
Author: Richard Hughes <richard hughsie com>
Date:   Wed Mar 16 16:49:42 2022 +0000

    Fix setting the cache control property

 app_data/odrs/views_api.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app_data/odrs/views_api.py b/app_data/odrs/views_api.py
index 9527901..d3c6e16 100644
--- a/app_data/odrs/views_api.py
+++ b/app_data/odrs/views_api.py
@@ -295,7 +295,7 @@ def api_fetch():
     response = Response(response=dat,
                         status=200, \
                         mimetype='application/json')
-    response.cache_control = 'private'
+    response.cache_control.private = True
     response.add_etag()
     return response.make_conditional(request)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]