Skip to content

Commit 17ed0aa

Browse files
casdevspluma
authored andcommitted
Misspelled "opts.spath" leads to 400 http errors (#513)
1 parent 056584f commit 17ed0aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class Route {
2525

2626
request({ method, path, headers = {}, ...opts }: any) {
2727
if (!path) opts.path = "";
28-
else if (this._path && path.charAt(0) !== "/") opts.spath = `/${path}`;
28+
else if (this._path && path.charAt(0) !== "/") opts.path = `/${path}`;
2929
else opts.path = path;
3030
opts.basePath = this._path;
3131
opts.headers = { ...this._headers, ...headers };

0 commit comments

Comments
 (0)