File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
## AWS Lambda Go Api Proxy
2
2
3
+ [ ![ CircleCI] ( https://circleci.com/gh/LF-Engineering/aws-lambda-go-api-proxy/tree/master.svg?style=svg&circle-token=7a4af389ad43eb22517668fa8997847e3d981de4 )] ( https://circleci.com/gh/LF-Engineering/aws-lambda-go-api-proxy/tree/master )
4
+
3
5
** LF Notice** : this is a fork of [ github.com/awslabs/aws-lambda-go-api-proxy] ( github.com/awslabs/aws-lambda-go-api-proxy ) that contains:
4
6
5
7
* Fix for response headers (current master branch in upstream is broken)
Original file line number Diff line number Diff line change @@ -154,7 +154,10 @@ var _ = Describe("ResponseWriter tests", func() {
154
154
Expect (err ).To (BeNil ())
155
155
156
156
// Headers are not written to `Headers` field
157
- Expect (0 ).To (Equal (len (proxyResponse .Headers )))
157
+ // TODO: DAD - why is this test here (commented out for now)? Added
158
+ // back the logic to copy over headers - without this the
159
+ // 'Content-Type' is NOT passed through properly
160
+ //Expect(0).To(Equal(len(proxyResponse.Headers)))
158
161
Expect (1 ).To (Equal (len (proxyResponse .MultiValueHeaders ["Content-Type" ])))
159
162
Expect ("application/json" ).To (Equal (proxyResponse .MultiValueHeaders ["Content-Type" ][0 ]))
160
163
})
@@ -168,7 +171,10 @@ var _ = Describe("ResponseWriter tests", func() {
168
171
Expect (err ).To (BeNil ())
169
172
170
173
// Headers are not written to `Headers` field
171
- Expect (0 ).To (Equal (len (proxyResponse .Headers )))
174
+ // TODO: DAD - why is this test here (commented out for now)? Added
175
+ // back the logic to copy over headers - without this the
176
+ // 'Content-Type' is NOT passed through properly
177
+ //Expect(0).To(Equal(len(proxyResponse.Headers)))
172
178
173
179
// There are two headers here because Content-Type is always written implicitly
174
180
Expect (2 ).To (Equal (len (proxyResponse .MultiValueHeaders ["Set-Cookie" ])))
You can’t perform that action at this time.
0 commit comments