Commit f3cdbab5 authored by ap's avatar ap
Browse files

Reviewed by Darin.

        - http://bugzilla.opendarwin.org/show_bug.cgi?id=9572
        Add application/xhtml+xml to the Accept header

        * WebView/WebFrame.m:
        (-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]): Add an Accept header
        to main resource requests.
        * English.lproj/StringsNotToBeLocalized.txt: Added new strings.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5803a710
2006-07-09 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Darin.
- http://bugzilla.opendarwin.org/show_bug.cgi?id=9572
Add application/xhtml+xml to the Accept header
* WebView/WebFrame.m:
(-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]): Add an Accept header
to main resource requests.
* English.lproj/StringsNotToBeLocalized.txt: Added new strings.
2006-07-08 Darin Adler <darin@apple.com>
* DefaultDelegates/WebDefaultContextMenuDelegate.m:
......
......@@ -350,6 +350,7 @@
"mainFrameIcon"
"mainFrameTitle"
"mainFrameURL"
"max-age=0"
"missing_image"
"multipart/x-mixed-replace"
"must-revalidate"
......@@ -378,6 +379,7 @@
"text/x-vcalendar"
"text/x-vcard"
"text/x-vcf"
"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
"tiff"
"txt"
"u"
......@@ -417,6 +419,7 @@ WebCoreSupport/WebFrameBridge.m:"width"
WebInspector/WebInspector.m
WebInspector/WebInspectorPanel.m:"control"
WebInspector/WebInspectorPanel.m:"resize"
WebView/WebFrame.m:"Accept"
WebView/WebFrame.m:"Refresh"
WebView/WebHTMLView.m:"%0.fpx"
WebView/WebHTMLView.m:"'%@'"
......
......@@ -2775,6 +2775,9 @@ - (void)_addExtraFieldsToRequest:(NSMutableURLRequest *)request mainResource:(BO
else
[request setMainDocumentURL:[[[[self webView] mainFrame] dataSource] _URL]];
}
if (mainResource)
[request setValue:@"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" forHTTPHeaderField:@"Accept"];
}
- (BOOL)_isMainFrame
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment