webengine/osswebengine/WebCore/xml/xmlhttprequest.cpp
changeset 65 5bfc169077b2
parent 37 cb62a4f66ebe
child 68 92a765b5b3e7
equal deleted inserted replaced
42:d39add9822e2 65:5bfc169077b2
   723             m_decoder = new TextResourceDecoder("text/plain", m_encoding);
   723             m_decoder = new TextResourceDecoder("text/plain", m_encoding);
   724         // allow TextResourceDecoder to look inside the m_response if it's XML or HTML
   724         // allow TextResourceDecoder to look inside the m_response if it's XML or HTML
   725         else if (responseIsXML())
   725         else if (responseIsXML())
   726             m_decoder = new TextResourceDecoder("application/xml");
   726             m_decoder = new TextResourceDecoder("application/xml");
   727         else if (responseMIMEType() == "text/html")
   727         else if (responseMIMEType() == "text/html")
   728             m_decoder = new TextResourceDecoder("text/html", "UTF-8");
   728             m_decoder = new TextResourceDecoder("text/html");
   729         else
   729         else
   730             m_decoder = new TextResourceDecoder("text/plain", "UTF-8");
   730             m_decoder = new TextResourceDecoder("text/plain", "UTF-8");
   731     }
   731     }
   732     if (len == 0)
   732     if (len == 0)
   733         return;
   733         return;