Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/GzipGetMethod.java')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/GzipGetMethod.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/GzipGetMethod.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/GzipGetMethod.java
index bf6dfbcc8..2569586c7 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/GzipGetMethod.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/GzipGetMethod.java
@@ -12,6 +12,7 @@
package org.eclipse.mylyn.internal.bugzilla.core;
import java.io.IOException;
+import java.io.InputStream;
import org.apache.commons.httpclient.HttpConnection;
import org.apache.commons.httpclient.HttpException;
@@ -29,7 +30,6 @@ import org.apache.commons.httpclient.methods.GetMethod;
* </ul>
*
* @see GzipPostMethod, GetMethod
- *
* @author Maarten Meijer
*/
public class GzipGetMethod extends GetMethod {
@@ -64,7 +64,10 @@ public class GzipGetMethod extends GetMethod {
*/
public void getResponseBodyNoop() throws IOException {
// result is ignored
- super.getResponseBody();
+ InputStream instream = getResponseBodyAsStream();
+ byte[] buffer = new byte[4096];
+ while (instream.read(buffer) > 0) {
+ }
}
}

Back to the top