<?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>16084</bug_id>
          
          <creation_ts>2007-11-21 03:29:44 -0800</creation_ts>
          <short_desc>File served as text/plain downloaded</short_desc>
          <delta_ts>2007-11-23 07:28:38 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://james.wheare.org/stuff/test.txt</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="James Wheare">james</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>mitz</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61909</commentid>
    <comment_count>0</comment_count>
    <who name="James Wheare">james</who>
    <bug_when>2007-11-21 03:29:44 -0800</bug_when>
    <thetext>Loading this URL in Safari 3 on Leopard prompts the file to be downloaded.

curl -I http://james.wheare.org/stuff/test.txt
HTTP/1.1 200 OK
Date: Wed, 21 Nov 2007 11:26:01 GMT
Server: Apache
Last-Modified: Wed, 21 Nov 2007 11:24:51 GMT
ETag: &quot;1173c26-26a-43f6ea13e26c0&quot;
Accept-Ranges: bytes
Content-Length: 618
Content-Type: text/plain; charset=UTF-8

Is there something in the content that provokes MIME type sniffing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61910</commentid>
    <comment_count>1</comment_count>
    <who name="James Wheare">james</who>
    <bug_when>2007-11-21 03:31:04 -0800</bug_when>
    <thetext>Possibly related:
http://bugs.webkit.org/show_bug.cgi?id=14882
http://bugs.webkit.org/show_bug.cgi?id=15771
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61911</commentid>
    <comment_count>2</comment_count>
      <attachid>17428</attachid>
    <who name="James Wheare">james</who>
    <bug_when>2007-11-21 03:32:53 -0800</bug_when>
    <thetext>Created attachment 17428
Downloaded from http://james.wheare.org/stuff/test.txt

Left the type as auto-detect</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61914</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-11-21 05:32:56 -0800</bug_when>
    <thetext>I suspect this is due to CFNetwork doing content sniffing, detecting non-ASCII bytes set, and deciding that the server is lying about the MIME type.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61928</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-11-21 10:21:54 -0800</bug_when>
    <thetext>Works fine with Safari 3.0.4 (523.12) on Mac OS X 10.4.11 (8S165) Tiger.

As Mark noted in Comment #3, this is likely a CFNetwork issue.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61929</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-11-21 10:22:22 -0800</bug_when>
    <thetext>&lt;rdar://problem/5610097&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61930</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-11-21 10:23:42 -0800</bug_when>
    <thetext>Thanks for the bug report, James!

I&apos;m closing this bug as RESOLVED/INVALID since the bug is not in WebKit itself.  The issue will be tracked internally via the Radar bug opened.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62085</commentid>
    <comment_count>7</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-11-23 07:28:38 -0800</bug_when>
    <thetext>This is fixed in TOT. Another dupe of &lt;rdar://problem/5313523&gt;, fixed in &lt;http://trac.webkit.org/projects/webkit/changeset/26758&gt;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>17428</attachid>
            <date>2007-11-21 03:32:53 -0800</date>
            <delta_ts>2007-11-21 03:32:53 -0800</delta_ts>
            <desc>Downloaded from http://james.wheare.org/stuff/test.txt</desc>
            <filename>test.txt</filename>
            <type>text/plain</type>
            <size>618</size>
            <attacher name="James Wheare">james</attacher>
            
              <data encoding="base64">PT09PT09IGRlID09PT09PQpSQURJT1BMQVlFUgpQTEFZTElTVFBMQVlFUgpDSEFSVFMKQ09MTEFH
RU4KVEFTVEUtTy1NRVRFUgpGQUNFQk9PSwo9PT09PT0gcHQgPT09PT09ClBMQVlFUiBERSBSw4FE
SU9TClBMQVlFUiBERSBMSVNUQVMKVEFCRUxBUwpNT1NBSUNPUwpUQVNURS1PLU1FVEVSCkZBQ0VC
T09LCj09PT09PSBlcyA9PT09PT0KUkVQUk9EVUNUT1IgUkFESU8KUkVQUk9EVUNUT1IgTElTVEFT
CkxJU1RBUwpNT1NBSUNPUwpDT01QQVRJQklMSURBRApGQUNFQk9PSwo9PT09PT0gZnIgPT09PT09
CkxFQ1RFVVIgUkFESU8KTEVDVEVVUiBERSBQTEFZTElTVApDSEFSVFMKTU9TQcOPUVVFUwpTSU1J
TC1PLU3DiFRSRQpGQUNFQk9PSwo9PT09PT0gaXQgPT09PT09CkxFVFRPUkUgUkFESU8KTEVUVE9S
RSBESSBQTEFZTElTVApDTEFTU0lGSUNIRQpDT0xMQUdFCkdVU1RPTUVUUk8KRkFDRUJPT0sKPT09
PT09IHN2ID09PT09PQpSQURJTwpTUEVMQVJFIEbDllIgQkxBTkRCQU5ECkxJU1RPUgpDT0xMQUdF
ClNNQUstTy1NRVRFUgpGQUNFQk9PSwo9PT09PT0gZW4gPT09PT09ClJBRElPIFBMQVlFUgpQTEFZ
TElTVCBQTEFZRVIKQ0hBUlRTClFVSUxUUwpUQVNURU9NRVRFUgpGQUNFQk9PSwoK
</data>

          </attachment>
      

    </bug>

</bugzilla>