Trim whitespace when processing cookie names in HttpRequestData (#696)
* trim whitespace around cookie names when processing them in HttpRequestData * bump the grpc project version Co-authored-by: Sarah Vu <sarahvu@microsoft.com>
This commit is contained in:
Родитель
66c6380a31
Коммит
0ab7cddf2f
|
@ -4,3 +4,4 @@
|
|||
-->
|
||||
- Fixes `null` reference exception when accessing request identities (#673)
|
||||
- Exposed `RetryContext` to support retry policies (#316)
|
||||
- Fixes leading/trailing whitespaces in HttpRequestData cookies (#694)
|
|
@ -9,6 +9,7 @@
|
|||
<RootNamespace>Microsoft.Azure.Functions.Worker.Grpc</RootNamespace>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<MinorProductVersion>3</MinorProductVersion>
|
||||
<PatchProductVersion>1</PatchProductVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="..\..\build\Common.props" />
|
||||
|
|
|
@ -153,7 +153,7 @@ namespace Microsoft.Azure.Functions.Worker
|
|||
for (int c = 0; c < separateCookies.Length; c++)
|
||||
{
|
||||
var splitArray = separateCookies[c].Split("=", StringSplitOptions.RemoveEmptyEntries);
|
||||
var name = splitArray[0];
|
||||
var name = splitArray[0].Trim();
|
||||
var value = splitArray[1];
|
||||
httpCookiesList.Add(new HttpCookie(name, value));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче