diff options
| -rw-r--r-- | main.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -897,7 +897,16 @@ static int check_length(const unsigned long long len, bool has_quota; unsigned long long quota; - if (auth_quota(a, username, &has_quota, "a)) + if (auth_cookie(a, c)) + { + fprintf(stderr, "%s: auth_cookie failed\n", __func__); + + if (page_forbidden(r)) + return -1; + + return 1; + } + else if (auth_quota(a, username, &has_quota, "a)) { fprintf(stderr, "%s: auth_quota failed\n", __func__); return -1; |
