diff options
Diffstat (limited to 'WebCore/plugins/PluginStream.cpp')
-rw-r--r-- | WebCore/plugins/PluginStream.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/WebCore/plugins/PluginStream.cpp b/WebCore/plugins/PluginStream.cpp index 393174c..d2d5d3c 100644 --- a/WebCore/plugins/PluginStream.cpp +++ b/WebCore/plugins/PluginStream.cpp @@ -34,6 +34,7 @@ #include "PluginDebug.h" #include "SharedBuffer.h" #include "SubresourceLoader.h" +#include <StringExtras.h> // We use -2 here because some plugins like to return -1 to indicate error // and this way we won't clash with them. @@ -129,20 +130,20 @@ void PluginStream::startStream() // Some plugins (Flash) expect that javascript URLs are passed back decoded as this is the // format used when requesting the URL. - if (responseURL.protocolIs("javascript")) + if (protocolIsJavaScript(responseURL)) m_stream.url = strdup(decodeURLEscapeSequences(responseURL.string()).utf8().data()); else m_stream.url = strdup(responseURL.string().utf8().data()); - + CString mimeTypeStr = m_resourceResponse.mimeType().utf8(); - + long long expectedContentLength = m_resourceResponse.expectedContentLength(); if (m_resourceResponse.isHTTP()) { Vector<UChar> stringBuilder; String separator(": "); - String statusLine = String::format("HTTP %lu OK\n", m_resourceResponse.httpStatusCode()); + String statusLine = String::format("HTTP %d OK\n", m_resourceResponse.httpStatusCode()); stringBuilder.append(statusLine.characters(), statusLine.length()); |