From: Kai Moritz Date: Thu, 2 Aug 2012 04:48:02 +0000 (+0200) Subject: 30x-Antworten werden nun doch (vorerst) auch dekoriert X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=ddbf3839908b469d688cab195a370bdc613a41e5;p=percentcodec 30x-Antworten werden nun doch (vorerst) auch dekoriert --- 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