diff --git a/sdk/Common/Communication/ServiceClientImpl.cs b/sdk/Common/Communication/ServiceClientImpl.cs index fc8f847..75ae9a1 100644 --- a/sdk/Common/Communication/ServiceClientImpl.cs +++ b/sdk/Common/Communication/ServiceClientImpl.cs @@ -480,11 +480,11 @@ internal static void AddInternal(WebHeaderCollection headers, string key, string // Specify the internal method name for adding headers // mono: AddWithoutValidate // win: AddInternal - var internalMethodName = (_isMonoPlatform == true) ? "AddWithoutValidate" : "AddInternal"; + var internalMethodName = (_isMonoPlatform == true) ? "AddWithoutValidate" : "Add"; var mi = typeof(WebHeaderCollection).GetMethod( internalMethodName, - BindingFlags.NonPublic | BindingFlags.Instance, + BindingFlags.Public | BindingFlags.Instance, null, new Type[] { typeof(string), typeof(string) }, null);