Skip to content

Commit

Permalink
fix(http): walk the registeredHandlers backward properly
Browse files Browse the repository at this point in the history
Closes #114
  • Loading branch information
michaelfig committed Nov 2, 2019
1 parent 3e28de9 commit 157b9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ag-solo/vats/vat-http.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function build(E, D) {
// For now, go from the end to beginning so that handlers
// override.
const hardObjects = harden({...homeObjects});
for (let i = registeredHandlers.length - 1; i >= 0; i++) {
for (let i = registeredHandlers.length - 1; i >= 0; i--) {
res = await E(registeredHandlers[i]).processInbound(obj, hardObjects);
if (res) {
break;
Expand Down

0 comments on commit 157b9ad

Please sign in to comment.