From fb4a82594d4ddc60e6fe342ff57203c8c0dcc085 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Thu, 2 Aug 2012 06:48:02 +0200 Subject: [PATCH] Es werden nun vorerst doch auch 30x-Antworten werden dekoriert --- .../de/halbekunst/juplo/cachecontrol/CacheControl.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControl.java b/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControl.java index c3e7c993..458979d9 100644 --- a/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControl.java +++ b/cachecontrol/src/main/java/de/halbekunst/juplo/cachecontrol/CacheControl.java @@ -72,6 +72,15 @@ public class CacheControl { case HttpServletResponse.SC_PARTIAL_CONTENT: // 206 /** Normale Antwort! Antwort dekorieren... */ break; + case HttpServletResponse.SC_MOVED_PERMANENTLY: // 301 + case HttpServletResponse.SC_MOVED_TEMPORARILY: // 302 + case HttpServletResponse.SC_SEE_OTHER: // 303 + case HttpServletResponse.SC_NOT_MODIFIED: // 304 + case HttpServletResponse.SC_USE_PROXY: // 305 + case HttpServletResponse.SC_TEMPORARY_REDIRECT: // 307 + /** Redirect-Antwort! Antwort dekodieren... */ + // TODO: Kann das wirklich nicht zu Protokoll-Verletzungen führen? + break; case HttpServletResponse.SC_BAD_REQUEST: // 400 case HttpServletResponse.SC_UNAUTHORIZED: // 401 case HttpServletResponse.SC_PAYMENT_REQUIRED: // 402 -- 2.20.1