You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/basic/serverless.yml
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,14 @@ plugins:
6
6
custom:
7
7
apiGateway:
8
8
binaryMediaTypes:
9
-
- image/png
10
-
- image/jpeg
11
-
- "*/*"# Using */* doesn't have side effects that I can tell. The HTML response works fine.
9
+
# You can use the wildcard character (*) to cover multiple media types per https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-payload-encodings.html
10
+
# NOTE: Using */* has a side effect as noted at https://github.com/activescott/serverless-aws-static-file-handler
11
+
# IANA descrete type wildcards from: https://www.iana.org/assignments/media-types/media-types.xhtml
Copy file name to clipboardExpand all lines: examples/serverless-offline/serverless.yml
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,14 @@ plugins:
7
7
custom:
8
8
apiGateway:
9
9
binaryMediaTypes:
10
-
- image/png
11
-
- image/jpeg
12
-
- "*/*"# Using */* doesn't have side effects that I can tell. The HTML response works fine.
10
+
# You can use the wildcard character (*) to cover multiple media types per https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-payload-encodings.html
11
+
# NOTE: Using */* has a side effect as noted at https://github.com/activescott/serverless-aws-static-file-handler
12
+
# IANA descrete type wildcards from: https://www.iana.org/assignments/media-types/media-types.xhtml
Copy file name to clipboardExpand all lines: test-files/basic-project/serverless.yml
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,14 @@ plugins:
6
6
custom:
7
7
apiGateway:
8
8
binaryMediaTypes:
9
-
- image/png
10
-
- image/jpeg
11
-
- "*/*"# Using */* doesn't have side effects that I can tell. The HTML response works fine.
9
+
# You can use the wildcard character (*) to cover multiple media types per https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-payload-encodings.html
10
+
# NOTE: Using */* has a side effect as noted at https://github.com/activescott/serverless-aws-static-file-handler
11
+
# IANA descrete type wildcards from: https://www.iana.org/assignments/media-types/media-types.xhtml
0 commit comments