File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ module.exports = {
1010 ResponseModels : { } ,
1111 StatusCode : 200
1212 } ,
13- {
14- ResponseParameters : { } ,
15- ResponseModels : { } ,
16- StatusCode : 206
17- } ,
1813 {
1914 ResponseParameters : { } ,
2015 ResponseModels : { } ,
@@ -28,6 +23,14 @@ module.exports = {
2823 ]
2924 }
3025 }
26+ if ( http && http . partialContent ) {
27+ methodResponse . Properties . MethodResponses . push (
28+ {
29+ ResponseParameters : { } ,
30+ ResponseModels : { } ,
31+ StatusCode : 206
32+ } ) ;
33+ }
3134
3235 if ( http && http . cors ) {
3336 let origin = http . cors . origin
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module.exports = {
2222 RestApiId : this . provider . getApiGatewayRestApiId ( )
2323 }
2424 }
25-
25+ event . http . partialContent = true ;
2626 _ . merge (
2727 template ,
2828 this . getS3MethodIntegration ( event . http ) ,
You can’t perform that action at this time.
0 commit comments