@@ -56,13 +56,13 @@ public OwinEnvironment(HttpContext context)
56
56
{ OwinConstants . RequestPath , new FeatureMap < IHttpRequestFeature > ( feature => feature . Path , ( ) => string . Empty , ( feature , value ) => feature . Path = Convert . ToString ( value ) ) } ,
57
57
{ OwinConstants . RequestQueryString , new FeatureMap < IHttpRequestFeature > ( feature => Utilities . RemoveQuestionMark ( feature . QueryString ) , ( ) => string . Empty ,
58
58
( feature , value ) => feature . QueryString = Utilities . AddQuestionMark ( Convert . ToString ( value ) ) ) } ,
59
- { OwinConstants . RequestHeaders , new FeatureMap < IHttpRequestFeature > ( feature => Utilities . MakeDictionaryStringArray ( feature . Headers ) , ( feature , value ) => feature . Headers = Utilities . MakeDictionaryStringValues ( ( IDictionary < string , string [ ] > ) value ) ) } ,
59
+ { OwinConstants . RequestHeaders , new FeatureMap < IHttpRequestFeature > ( feature => Utilities . MakeDictionaryStringArray ( feature . Headers ) , ( feature , value ) => feature . Headers = Utilities . MakeHeaderDictionary ( ( IDictionary < string , string [ ] > ) value ) ) } ,
60
60
{ OwinConstants . RequestBody , new FeatureMap < IHttpRequestFeature > ( feature => feature . Body , ( ) => Stream . Null , ( feature , value ) => feature . Body = ( Stream ) value ) } ,
61
61
{ OwinConstants . RequestUser , new FeatureMap < IHttpAuthenticationFeature > ( feature => feature . User , ( ) => null , ( feature , value ) => feature . User = ( ClaimsPrincipal ) value ) } ,
62
62
63
63
{ OwinConstants . ResponseStatusCode , new FeatureMap < IHttpResponseFeature > ( feature => feature . StatusCode , ( ) => 200 , ( feature , value ) => feature . StatusCode = Convert . ToInt32 ( value ) ) } ,
64
64
{ OwinConstants . ResponseReasonPhrase , new FeatureMap < IHttpResponseFeature > ( feature => feature . ReasonPhrase , ( feature , value ) => feature . ReasonPhrase = Convert . ToString ( value ) ) } ,
65
- { OwinConstants . ResponseHeaders , new FeatureMap < IHttpResponseFeature > ( feature => Utilities . MakeDictionaryStringArray ( feature . Headers ) , ( feature , value ) => feature . Headers = Utilities . MakeDictionaryStringValues ( ( IDictionary < string , string [ ] > ) value ) ) } ,
65
+ { OwinConstants . ResponseHeaders , new FeatureMap < IHttpResponseFeature > ( feature => Utilities . MakeDictionaryStringArray ( feature . Headers ) , ( feature , value ) => feature . Headers = Utilities . MakeHeaderDictionary ( ( IDictionary < string , string [ ] > ) value ) ) } ,
66
66
{ OwinConstants . ResponseBody , new FeatureMap < IHttpResponseFeature > ( feature => feature . Body , ( ) => Stream . Null , ( feature , value ) => feature . Body = ( Stream ) value ) } ,
67
67
{ OwinConstants . CommonKeys . OnSendingHeaders , new FeatureMap < IHttpResponseFeature > (
68
68
feature => new Action < Action < object > , object > ( ( cb , state ) => {
0 commit comments