@adobe/helix-html-pipeline 3.4.3 → 3.4.4

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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [3.4.4](https://github.com/adobe/helix-html-pipeline/compare/v3.4.3...v3.4.4) (2022-10-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **html:** do not skip custom headers for 3xx responses (json) ([7dfd60d](https://github.com/adobe/helix-html-pipeline/commit/7dfd60df9fce1b66f2c2c37203f905f2614a9640)), closes [#153](https://github.com/adobe/helix-html-pipeline/issues/153)
7
+
1
8
  ## [3.4.3](https://github.com/adobe/helix-html-pipeline/compare/v3.4.2...v3.4.3) (2022-10-06)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "3.4.3",
3
+ "version": "3.4.4",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/json-pipe.js CHANGED
@@ -90,6 +90,10 @@ export async function jsonPipe(state, req) {
90
90
 
91
91
  // if still not found, return status
92
92
  if (dataResponse.status !== 200) {
93
+ if (dataResponse.status < 500) {
94
+ await fetchConfigAll(state, req, dataResponse);
95
+ await setCustomResponseHeaders(state, req, dataResponse);
96
+ }
93
97
  return dataResponse;
94
98
  }
95
99
  const data = dataResponse.body;