Bug 34654 - Content-Type Header set as "application/xml" when Content-Type header is not set by setRequestHeader method.
Summary: Content-Type Header set as "application/xml" when Content-Type header is not...
Status: RESOLVED DUPLICATE of bug 11049
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-05 10:57 PST by sangeetha.sugavanam
Modified: 2010-02-05 21:45 PST (History)
1 user (show)

See Also:


Attachments
Test files (1.54 KB, application/x-zip-compressed)
2010-02-05 10:59 PST, sangeetha.sugavanam
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description sangeetha.sugavanam 2010-02-05 10:57:27 PST
Steps to Reproduce:
1) Launch QtLauncher.
2) Save the attached webpage.
3) Load the attached webpage using qtLauncher.


Expected Result:
===============
- "HTTP_CONTENT_TYPE:text/plain; charset=UTF-8" should be displayed in the
list.

Actual Result:
==============
- "HTTP_CONTENT_TYPE:application/xml" is displayed in the list.

Additional Info:
================
1. Test Assertion : Invoke Send with in parameter Data as Document - 
   If no Content-Type header has been set using setRequestHeader() 
   set a Content-Type request header with a value of text/plain;charset=UTF-8.

2. W3c spec link -
  
http://dev.w3.org/cvsweb/~checkout~/2006/webapi/XMLHttpRequest/Overview.html?rev=1.209&content-type=text/html;%20charset=iso-8859-1

3. Pls refer : Section 4.6.3 - Alogorithm 3 under "data is a DOMString
Comment 1 sangeetha.sugavanam 2010-02-05 10:59:42 PST
Created attachment 48242 [details]
Test files
Comment 2 Alexey Proskuryakov 2010-02-05 21:45:36 PST
This is not specific to Qt.

*** This bug has been marked as a duplicate of bug 11049 ***