From 2e70bf37854e39d46557317fb4098da5261618d5 Mon Sep 17 00:00:00 2001 From: sujayskumar Date: Wed, 24 Jun 2015 15:41:43 +0530 Subject: Fixed #25017 -- Allowed customizing the DISALLOWED_USER_AGENTS response --- docs/releases/1.9.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs') diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt index 3a105fd3b6..9b0fbb2a02 100644 --- a/docs/releases/1.9.txt +++ b/docs/releases/1.9.txt @@ -452,6 +452,12 @@ Requests and Responses ` to ``None`` to revert any changes made by previous middleware and return to using the :setting:`ROOT_URLCONF`. +* The :setting:`DISALLOWED_USER_AGENTS` check in + :class:`~django.middleware.common.CommonMiddleware` now raises a + :class:`~django.core.exceptions.PermissionDenied` exception as opposed to + returning an :class:`~django.http.HttpResponseForbidden` so that + :data:`~django.conf.urls.handler403` is invoked. + Tests ^^^^^ -- cgit v1.3