Fixed FELIX-4849 : Do not call setContentLength after calling sendRedirect
https://issues.apache.org/jira/browse/FELIX-4849

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1701212 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
index 3f63db6..25c8bb3 100644
--- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
+++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
@@ -519,8 +519,8 @@
                 path = path.concat("/"); //$NON-NLS-1$
             }
             path = path.concat(holder.getDefaultPluginLabel());
-            response.sendRedirect(path);
             response.setContentLength(0);
+            response.sendRedirect(path);
             return;
         }