braid-http 1.3.2 → 1.3.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.
@@ -244,7 +244,7 @@ async function braid_fetch (url, params = {}) {
244
244
  let on_error = e => {
245
245
  on_error = () => {}
246
246
 
247
- if (!params.retry || (e.name === "AbortError")) {
247
+ if (!params.retry || e.name === "AbortError" || e.startsWith?.('Parse error in headers')) {
248
248
  subscription_error?.(e)
249
249
  return fail(e)
250
250
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-http",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "An implementation of Braid-HTTP for Node.js and Browsers",
5
5
  "scripts": {
6
6
  "test": "node test/server.js"