<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>18067</bug_id>
          
          <creation_ts>2008-03-25 07:42:47 -0700</creation_ts>
          <short_desc>gzipped content is downloaded instead of displayed</short_desc>
          <delta_ts>2008-05-27 01:13:15 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://darcs.haskell.org/cabal/_darcs/patches/20080325134032-6871e-ab0ed6eb5a7829cf978313d2e2b20074bdd15982.gz</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>bjorn</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>ap</cc>
    
    <cc>cgriego</cc>
    
    <cc>ismail</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75105</commentid>
    <comment_count>0</comment_count>
    <who name="">bjorn</who>
    <bug_when>2008-03-25 07:42:47 -0700</bug_when>
    <thetext>Safari 3.1 and the latest WebKit nightly download gzipped text/plain content instead of displaying it. For example, 

http://darcs.haskell.org/cabal/_darcs/patches/20080325134032-6871e-ab0ed6eb5a7829cf978313d2e2b20074bdd15982.gz

is a gzipped plain text file which Apache serves as follows:

HTTP/1.1 200 OK
Date: Tue, 25 Mar 2008 14:15:24 GMT
Server: Apache/2.2.3 (Debian)
Last-Modified: Tue, 25 Mar 2008 13:29:59 GMT
ETag: &quot;610e8b-a7-f2eb03c0&quot;
Accept-Ranges: bytes
Content-Length: 167
Content-Type: text/plain; charset=UTF-8
Content-Encoding: x-gzip

WebKit doesn&apos;t display this file, instead it is downloaded. Firefox is happy to display it. WebKit should be able to work out that since the content is text/plain, it could ungzip and display it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81569</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-05-27 01:13:15 -0700</bug_when>
    <thetext>Unlike &quot;gzip&quot;, &quot;x-gzip&quot; is not supported by underlying Mac system frameworks, adding support for it is tracked internally by Apple as &lt;rdar://5418646&gt;. Closing as INVALID per our process, as this is not a WebKit bug.

However, please note that strictly speaking, it is also a server bug that it sends encoded response even though the request didn&apos;t explicitly specify support for this encoding in an Accept-Encoding header.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>