mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
add basic test, disable etag on post routes as well, paypal ipn: prevent set headers after response error
This commit is contained in:
@@ -33,8 +33,8 @@ export function readController (router, controller, overrides = []) {
|
||||
|
||||
method = method.toLowerCase();
|
||||
|
||||
// all get routes with mandatory or optional authentication
|
||||
if (method === 'get' && authMiddlewareIndex !== -1) {
|
||||
// disable caching for all routes with mandatory or optional authentication
|
||||
if (authMiddlewareIndex !== -1) {
|
||||
middlewares.unshift(disableCache);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user