File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,15 +87,15 @@ class REQUEST {
87
87
this . rawHeaders = this . _multiValueSupport ?
88
88
Object . keys ( this . app . _event . multiValueHeaders ) . reduce ( ( headers , key ) =>
89
89
Object . assign ( headers , { [ key ] : UTILS . fromArray ( this . app . _event . multiValueHeaders [ key ] ) } ) , { } )
90
- : this . app . _event . headers || { }
90
+ : this . app . _event . headers || { }
91
91
92
92
// Set the headers to lowercase
93
93
this . headers = Object . keys ( this . rawHeaders ) . reduce ( ( acc , header ) =>
94
94
Object . assign ( acc , { [ header . toLowerCase ( ) ] :this . rawHeaders [ header ] } ) , { } )
95
95
96
96
this . multiValueHeaders = this . _multiValueSupport ? this . app . _event . multiValueHeaders
97
97
: Object . keys ( this . headers ) . reduce ( ( headers , key ) =>
98
- Object . assign ( headers , { [ key . toLowerCase ( ) ] : [ this . headers [ key ] ] } ) , { } )
98
+ Object . assign ( headers , { [ key . toLowerCase ( ) ] : [ this . headers [ key ] ] } ) , { } )
99
99
100
100
// Extract user agent
101
101
this . userAgent = this . headers [ 'user-agent' ]
You can’t perform that action at this time.
0 commit comments