braid-http 1.3.47 → 1.3.48

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.
@@ -986,6 +986,11 @@ async function multiplex_fetch(url, params, mux_params) {
986
986
 
987
987
  var res = await normal_fetch(url, params)
988
988
 
989
+ if (res.status === 409) {
990
+ var e = await r.json()
991
+ if (e.error === 'Request already multiplexed') throw new Error(e.error)
992
+ }
993
+
989
994
  if (res.status === 424 && !mux_was_done) {
990
995
  // this error will trigger a retry if the user is using that option
991
996
  throw new Error('multiplexer not yet connected')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-http",
3
- "version": "1.3.47",
3
+ "version": "1.3.48",
4
4
  "description": "An implementation of Braid-HTTP for Node.js and Browsers",
5
5
  "scripts": {
6
6
  "test": "node test/server.js"