Commit faaa68a
authored
enhance the method of path.basename
value.client._httpMessage.path maybe return undefined, and cause error:
`TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined`。
Add `|| ''` to enhance quality。1 parent b16916a commit faaa68a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
0 commit comments