@@ -88,7 +88,9 @@ module.exports = {
8888 getIntegrationRequestParameters ( http ) {
8989 switch ( http . action ) {
9090 case 'GetObject' :
91- return { }
91+ return {
92+ 'integration.request.header.Range' : 'method.request.header.Range'
93+ }
9294 case 'PutObject' :
9395 return {
9496 'integration.request.header.x-amz-acl' : "'authenticated-read'" ,
@@ -104,7 +106,11 @@ module.exports = {
104106 case 'GetObject' :
105107 return {
106108 'method.response.header.content-type' : 'integration.response.header.content-type' ,
107- 'method.response.header.Content-Type' : 'integration.response.header.Content-Type'
109+ 'method.response.header.Content-Type' : 'integration.response.header.Content-Type' ,
110+ 'method.response.header.accept-ranges' : 'integration.response.header.accept-ranges' ,
111+ 'method.response.header.Accept-Ranges' : 'integration.response.header.Accept-Ranges' ,
112+ 'method.response.header.content-range' : 'integration.response.header.content-range' ,
113+ 'method.response.header.Content-Range' : 'integration.response.header.Content-Range'
108114 }
109115 case 'PutObject' :
110116 return {
@@ -187,7 +193,13 @@ module.exports = {
187193 } ,
188194 {
189195 StatusCode : 200 ,
190- SelectionPattern : '2\\d{2}' ,
196+ SelectionPattern : '2(?!06)\\d{2}' ,
197+ ResponseParameters : responseParams ,
198+ ResponseTemplates : this . getS3IntegrationResponseTemplate ( http , 'success' )
199+ } ,
200+ {
201+ StatusCode : 206 ,
202+ SelectionPattern : '206' ,
191203 ResponseParameters : responseParams ,
192204 ResponseTemplates : this . getS3IntegrationResponseTemplate ( http , 'success' )
193205 }
0 commit comments