<?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>9572</bug_id>
          
          <creation_ts>2006-06-25 00:05:14 -0700</creation_ts>
          <short_desc>Add application/xhtml+xml to the Accept header</short_desc>
          <delta_ts>2006-07-11 12:03:57 -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>Page Loading</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>4223</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47095</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-06-25 00:05:14 -0700</bug_when>
    <thetext>Currently, WebKit sends */* as its Accept header. A common technique for servers is to refrain from sending XHTML in this case, because this is what clients lacking XHTML support (such as IE) send.

This is what Firefox sends for the main resource:
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48721</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-07 10:17:44 -0700</bug_when>
    <thetext>See also: bug 9426.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48725</commentid>
    <comment_count>2</comment_count>
      <attachid>9254</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-07 10:57:59 -0700</bug_when>
    <thetext>Created attachment 9254
proposed patch

I am not aware of any reason for us to send something else than Firefox does in the Accept header, so I&apos;ve just copied theirs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48750</commentid>
    <comment_count>3</comment_count>
      <attachid>9254</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-07-07 16:27:41 -0700</bug_when>
    <thetext>Comment on attachment 9254
proposed patch

What&apos;s supplying our current Accept header value?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48770</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-08 00:54:50 -0700</bug_when>
    <thetext>(In reply to comment #3)
I couldn&apos;t find it in WebCore or WebKit, so it must be NSURLConnection itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48802</commentid>
    <comment_count>5</comment_count>
      <attachid>9254</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-07-08 05:50:47 -0700</bug_when>
    <thetext>Comment on attachment 9254
proposed patch

This new string will need to be added to StringNotToBeLocalized.txt.

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48886</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-08 23:59:04 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; This new string will need to be added to StringNotToBeLocalized.txt.

Added (also &quot;max-age=0&quot; from a previous patch).

Committed revision 15246.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49332</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-11 12:03:57 -0700</bug_when>
    <thetext>&gt; Committed revision 15246.

.. and 15340 for the test that I missed then.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9254</attachid>
            <date>2006-07-07 10:57:59 -0700</date>
            <delta_ts>2006-07-08 05:50:47 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>xhtml.txt</filename>
            <type>text/plain</type>
            <size>1682</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL2h0dHAvdGVzdHMvbWlzYy94aHRtbC1leHBlY3RlZC50eHQKPT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PQotLS0gTGF5b3V0VGVzdHMvaHR0cC90ZXN0cy9taXNjL3hodG1sLWV4cGVjdGVkLnR4
dAkocmV2aXNpb24gMCkKKysrIExheW91dFRlc3RzL2h0dHAvdGVzdHMvbWlzYy94aHRtbC1leHBl
Y3RlZC50eHQJKHJldmlzaW9uIDApCkBAIC0wLDAgKzEsMyBAQAorQWNjZXB0OiB0ZXh0L3htbCxh
cHBsaWNhdGlvbi94bWwsYXBwbGljYXRpb24veGh0bWwreG1sLHRleHQvaHRtbDtxPTAuOSx0ZXh0
L3BsYWluO3E9MC44LGltYWdlL3BuZywqLyo7cT0wLjUKKworUEFTUzogVGhlIGJyb3dzZXIgYXNr
cyBmb3IgWEhUTUwuCkluZGV4OiBMYXlvdXRUZXN0cy9odHRwL3Rlc3RzL21pc2MveGh0bWwucGhw
Cj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT0KLS0tIExheW91dFRlc3RzL2h0dHAvdGVzdHMvbWlzYy94aHRtbC5waHAJKHJl
dmlzaW9uIDApCisrKyBMYXlvdXRUZXN0cy9odHRwL3Rlc3RzL21pc2MveGh0bWwucGhwCShyZXZp
c2lvbiAwKQpAQ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VUkxdXTsKICAgICB9CisgICAgCisgICAgaWYgKG1h
aW5SZXNvdXJjZSkKKyAgICAgICAgW3JlcXVlc3Qgc2V0VmFsdWU6QCJ0ZXh0L3htbCxhcHBsaWNh
dGlvbi94bWwsYXBwbGljYXRpb24veGh0bWwreG1sLHRleHQvaHRtbDtxPTAuOSx0ZXh0L3BsYWlu
O3E9MC44LGltYWdlL3BuZywqLyo7cT0wLjUiIGZvckhUVFBIZWFkZXJGaWVsZDpAIkFjY2VwdCJd
OwogfQogCiAtIChCT09MKV9pc01haW5GcmFtZQo=
</data>
<flag name="review"
          id="2789"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>