Add HTTPHeaderName overloads on ResourceResponseBase
[WebKit-https.git] / Source / WebCore / platform / network / soup / ResourceResponseSoup.cpp
index 557d4db..d68f64f 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "ResourceResponse.h"
 
+#include "HTTPHeaderNames.h"
 #include "HTTPParsers.h"
 #include "MIMETypeRegistry.h"
 #include <wtf/text/CString.h>
@@ -98,7 +99,7 @@ void ResourceResponse::updateFromSoupMessageHeaders(const SoupMessageHeaders* me
     setTextEncodingName(extractCharsetFromMediaType(contentType));
 
     setExpectedContentLength(soup_message_headers_get_content_length(headers));
-    setSuggestedFilename(filenameFromHTTPContentDisposition(httpHeaderField("Content-Disposition")));}
+    setSuggestedFilename(filenameFromHTTPContentDisposition(httpHeaderField(HTTPHeaderName::ContentDisposition)));}
 
 }