From b82ce0787d0fecbe4d6cb3c99d3d46c1fbff4d22 Mon Sep 17 00:00:00 2001 From: "Oscar.One" Date: Mon, 28 Aug 2017 06:10:20 -0300 Subject: [PATCH] Prevent merging of header values when using custom handlers (#2099) --- CefSharp.Core/Internals/TypeConversion.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CefSharp.Core/Internals/TypeConversion.h b/CefSharp.Core/Internals/TypeConversion.h index 567919e04c..b87a24d36c 100644 --- a/CefSharp.Core/Internals/TypeConversion.h +++ b/CefSharp.Core/Internals/TypeConversion.h @@ -37,8 +37,10 @@ namespace CefSharp for each (String^ key in headers) { - String^ value = headers[key]; - result.insert(std::pair(StringUtils::ToNative(key), StringUtils::ToNative(value))); + for each(String^ value in headers->GetValues(key)) + { + result.insert(std::pair(StringUtils::ToNative(key), StringUtils::ToNative(value))); + } } return result;