Skip to content

Commit 935fd3d

Browse files
semantic-release-botyugasun
authored andcommitted
fix: remove protocol request option
1 parent 51120d4 commit 935fd3d

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

__tests__/unit.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ test('mapApiGatewayEventToHttpRequest: with headers', () => {
7070
expect(r.httpRequest).toEqual({
7171
method: 'GET',
7272
path: '/foo',
73-
protocol: 'http:',
7473
headers: {
7574
'x-foo': 'foo',
7675
'Content-Length': Buffer.byteLength('Hello serverless!')
@@ -85,7 +84,6 @@ test('mapApiGatewayEventToHttpRequest: without headers', () => {
8584
expect(r.httpRequest).toEqual({
8685
method: 'GET',
8786
path: '/foo',
88-
protocol: 'http:',
8987
headers: {
9088
'Content-Length': Buffer.byteLength('Hello serverless!')
9189
},

src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ function mapApiGatewayEventToHttpRequest (event, context, socketPath) {
3737

3838
return {
3939
method: event.httpMethod,
40-
protocol: headers['x-api-scheme'] ? `${headers['x-api-scheme']}:` : 'http:',
4140
path: getPathWithQueryStringParams(event),
4241
headers,
4342
socketPath

0 commit comments

Comments
 (0)