Skip to content
Myr

fix(`parseBody`): return blank object when JSON body is nothing (#433)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix #428

authored by Yusuke Wada · committed by GitHub · parent bdcd536 · Browse files · 2 files+13 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+13 added−2 removed

  • tests:+8 added−1 removed
  • other:+5 added−1 removed

2 files+13 added−2 removed

modified:src/utils/body.test.ts+8 added-1 removed
modified:src/utils/body.ts+5 added-1 removed