aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/api/util.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/api/util.ts')
-rw-r--r--packages/server/src/api/util.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/api/util.ts b/packages/server/src/api/util.ts
index 49144d4..1cc135f 100644
--- a/packages/server/src/api/util.ts
+++ b/packages/server/src/api/util.ts
@@ -1,4 +1,4 @@
-import { Git, GitAPI } from "./git";
+import { GitAPI, RequestInfo } from "./git";
import { readdir } from "fs";
type VerificationResultType = "SUCCESS" | "NOT_FOUND" | "INVALID" | "ACCESS_DENIED";
@@ -64,7 +64,7 @@ export async function verifySHA(git: GitAPI, repo_name: string, sha: string) {
return new VerificationResult("SUCCESS");
}
-export function verifyGitRequest(request_info: Git.RequestInfo) {
+export function verifyGitRequest(request_info: RequestInfo) {
if((/\.\/|\.\./u).test(request_info.parsed_url.pathname)) {
return new VerificationResult("INVALID", "path");
}