mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
judge: fix baseURL handle
This commit is contained in:
1 parent
4e0c9bb00a
commit
7c0f80e5a0
1 file changed
+1
-1
@@ -3,7 +3,7 @@ import { SandboxRequest, SandboxResult, SandboxVersion } from './interface';
|
||||
|
||||
export class SandboxClient {
|
||||
constructor(public baseURL: string) {
|
||||
if (baseURL.endsWith('/')) baseURL = baseURL.substring(0, baseURL.length - 1);
|
||||
if (baseURL.endsWith('/')) this.baseURL = baseURL.substring(0, baseURL.length - 1);
|
||||
}
|
||||
|
||||
public run(req: SandboxRequest): Promise<SandboxResult[]> {
|
||||
|
||||
Reference in new issue
Block a user