Revision 5032e934
ID | 5032e934b2c7391d9091f63914e71fd7613e7735 |
Fix Vary header modification in the aai middleware
Currently the SynnefoAuthMiddleware is setting the Vary header to
X-Auth-Token unconditionally. Unfortunately, this means that it will
override other similar additions to the header by response methods or
middleware modules — and worst of all, will vary (pun intended) on the
middleware load order.
Django provides django.utils.cache.patch_vary_headers that adds values
to the Vary header in a proper way, obeying what others have put there.
Files
- added
- modified
- copied
- renamed
- deleted