Title: [169970] trunk/Source/WebCore
- Revision
- 169970
- Author
- [email protected]
- Date
- 2014-06-14 09:06:49 -0700 (Sat, 14 Jun 2014)
Log Message
[Curl] Compile errors related to http headers.
https://bugs.webkit.org/show_bug.cgi?id=133901
Patch by [email protected] <[email protected]> on 2014-06-14
Reviewed by Brent Fulgham.
Http headers should now be specified with an enum, not a string.
* platform/network/curl/CurlCacheEntry.cpp:
(WebCore::CurlCacheEntry::parseResponseHeaders):
* platform/network/curl/MultipartHandle.cpp:
(WebCore::MultipartHandle::didReceiveResponse):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (169969 => 169970)
--- trunk/Source/WebCore/ChangeLog 2014-06-14 15:53:36 UTC (rev 169969)
+++ trunk/Source/WebCore/ChangeLog 2014-06-14 16:06:49 UTC (rev 169970)
@@ -1,3 +1,17 @@
+2014-06-14 [email protected] <[email protected]>
+
+ [Curl] Compile errors related to http headers.
+ https://bugs.webkit.org/show_bug.cgi?id=133901
+
+ Reviewed by Brent Fulgham.
+
+ Http headers should now be specified with an enum, not a string.
+
+ * platform/network/curl/CurlCacheEntry.cpp:
+ (WebCore::CurlCacheEntry::parseResponseHeaders):
+ * platform/network/curl/MultipartHandle.cpp:
+ (WebCore::MultipartHandle::didReceiveResponse):
+
2014-06-14 Brent Fulgham <[email protected]>
Unreviewed build fix after r169960.
Modified: trunk/Source/WebCore/platform/network/curl/CurlCacheEntry.cpp (169969 => 169970)
--- trunk/Source/WebCore/platform/network/curl/CurlCacheEntry.cpp 2014-06-14 15:53:36 UTC (rev 169969)
+++ trunk/Source/WebCore/platform/network/curl/CurlCacheEntry.cpp 2014-06-14 16:06:49 UTC (rev 169970)
@@ -31,6 +31,7 @@
#include "CurlCacheEntry.h"
#include "HTTPHeaderMap.h"
+#include "HTTPHeaderNames.h"
#include "HTTPParsers.h"
#include "Logging.h"
#include "ResourceHandle.h"
@@ -333,11 +334,11 @@
String etag = response.httpHeaderField("ETag");
if (!etag.isNull())
- m_requestHeaders.set("If-None-Match", etag);
+ m_requestHeaders.set(HTTPHeaderName::IfNoneMatch, etag);
String lastModified = response.httpHeaderField("Last-Modified");
if (!lastModified.isNull())
- m_requestHeaders.set("If-Modified-Since", lastModified);
+ m_requestHeaders.set(HTTPHeaderName::IfModifiedSince, lastModified);
if (etag.isNull() && lastModified.isNull())
return false;
Modified: trunk/Source/WebCore/platform/network/curl/MultipartHandle.cpp (169969 => 169970)
--- trunk/Source/WebCore/platform/network/curl/MultipartHandle.cpp 2014-06-14 15:53:36 UTC (rev 169969)
+++ trunk/Source/WebCore/platform/network/curl/MultipartHandle.cpp 2014-06-14 16:06:49 UTC (rev 169970)
@@ -28,6 +28,7 @@
#if USE(CURL)
+#include "HTTPHeaderNames.h"
#include "HTTPParsers.h"
#include "ResourceHandleClient.h"
#include "ResourceHandleInternal.h"
@@ -347,7 +348,7 @@
for (HTTPHeaderMap::const_iterator it = m_headers.begin(); it != end; ++it)
response->setHTTPHeaderField(it->key, it->value);
- String contentType = m_headers.get("Content-Type");
+ String contentType = m_headers.get(HTTPHeaderName::ContentType);
String mimeType = extractMIMETypeFromMediaType(contentType);
response->setMimeType(mimeType.lower());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes