You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by be...@apache.org on 2009/04/16 02:38:55 UTC

svn commit: r765437 - /incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/BasicHttpFetcher.java

Author: beaton
Date: Thu Apr 16 00:38:55 2009
New Revision: 765437

URL: http://svn.apache.org/viewvc?rev=765437&view=rev
Log:
Fix detection of content encodings.

Modified:
    incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/BasicHttpFetcher.java

Modified: incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/BasicHttpFetcher.java
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/BasicHttpFetcher.java?rev=765437&r1=765436&r2=765437&view=diff
==============================================================================
--- incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/BasicHttpFetcher.java (original)
+++ incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/BasicHttpFetcher.java Thu Apr 16 00:38:55 2009
@@ -52,7 +52,7 @@
  * the following issues are addressed:
  *
  * 1. This class potentially allows access to resources behind an organization's firewall.
- * 2. This class does not handle most advanced HTTP functionality correctly (SSL, gzip, etc.)
+ * 2. This class does not handle most advanced HTTP functionality correctly (SSL, etc.)
  * 3. This class does not enforce any limits on what is fetched from remote hosts.
  */
 @Singleton
@@ -123,7 +123,7 @@
       responseBodyStream = new ByteArrayInputStream(ArrayUtils.EMPTY_BYTE_ARRAY);
     }
 
-    String encoding = headers.get("Content-Type");
+    String encoding = headers.get("Content-Encoding");
 
     // Create the appropriate stream wrapper based on the encoding type.
     InputStream is = responseBodyStream;