@adobe/helix-deploy 9.0.35 → 9.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/DevelopmentServer.js +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [9.0.37](https://github.com/adobe/helix-deploy/compare/v9.0.36...v9.0.37) (2023-06-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* support binary content returned as base64 ([#548](https://github.com/adobe/helix-deploy/issues/548)) ([9cedbbe](https://github.com/adobe/helix-deploy/commit/9cedbbe6caa1001510d700031a6935b9f255b799))
|
|
7
|
+
|
|
8
|
+
## [9.0.36](https://github.com/adobe/helix-deploy/compare/v9.0.35...v9.0.36) (2023-05-31)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* suffix should not contain the query string ([#547](https://github.com/adobe/helix-deploy/issues/547)) ([b0715e4](https://github.com/adobe/helix-deploy/commit/b0715e4e889eba914b886bfb4c1460226656ec87))
|
|
14
|
+
|
|
1
15
|
## [9.0.35](https://github.com/adobe/helix-deploy/compare/v9.0.34...v9.0.35) (2023-05-27)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/DevelopmentServer.js
CHANGED
|
@@ -148,7 +148,7 @@ export default class DevelopmentServer {
|
|
|
148
148
|
body: req.rawBody,
|
|
149
149
|
headers: req.headers,
|
|
150
150
|
pathParameters: {
|
|
151
|
-
path:
|
|
151
|
+
path: rawPath.substring(1),
|
|
152
152
|
},
|
|
153
153
|
requestContext: {
|
|
154
154
|
domainName: req.hostname,
|
|
@@ -167,12 +167,13 @@ export default class DevelopmentServer {
|
|
|
167
167
|
const {
|
|
168
168
|
statusCode,
|
|
169
169
|
headers,
|
|
170
|
+
isBase64Encoded,
|
|
170
171
|
body,
|
|
171
172
|
} = await adapter(event, context);
|
|
172
173
|
|
|
173
174
|
res.status(statusCode);
|
|
174
175
|
Object.entries(headers).forEach(([name, value]) => res.set(name, value));
|
|
175
|
-
res.send(body);
|
|
176
|
+
res.send(isBase64Encoded ? Buffer.from(body, 'base64') : body);
|
|
176
177
|
};
|
|
177
178
|
this.params = config.params;
|
|
178
179
|
return this;
|