diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-13 22:59:16 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-13 22:59:16 +0800 |
commit | 98111aec8ddd70ca061c2954f3dddcc8817c1d44 (patch) | |
tree | df73ab1ad11f670c4d68590492bba4d1fced87b5 /http_handle_repo_info.go | |
parent | http_{server,handle_login}.go: Fix missing error handling (diff) | |
download | forge-98111aec8ddd70ca061c2954f3dddcc8817c1d44.tar.gz forge-98111aec8ddd70ca061c2954f3dddcc8817c1d44.tar.zst forge-98111aec8ddd70ca061c2954f3dddcc8817c1d44.zip |
*.go: Reformat
Diffstat (limited to '')
-rw-r--r-- | http_handle_repo_info.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http_handle_repo_info.go b/http_handle_repo_info.go index f5b9dfd..a994c34 100644 --- a/http_handle_repo_info.go +++ b/http_handle_repo_info.go @@ -5,5 +5,5 @@ import ( ) func handle_repo_info(w http.ResponseWriter, r *http.Request, params map[string]any) { - http.Error(w, "\x1b[1;93mHi! We do not support Git operations over HTTP yet.\x1b[0m\n\x1b[1;93mMeanwhile, please use ssh by simply replacing the scheme with \"ssh://\":\x1b[0m\n\x1b[1;93m"+ generate_ssh_remote_url(params["group_name"].(string), params["repo_name"].(string)) + "\x1b[0m", http.StatusNotImplemented) + http.Error(w, "\x1b[1;93mHi! We do not support Git operations over HTTP yet.\x1b[0m\n\x1b[1;93mMeanwhile, please use ssh by simply replacing the scheme with \"ssh://\":\x1b[0m\n\x1b[1;93m"+generate_ssh_remote_url(params["group_name"].(string), params["repo_name"].(string))+"\x1b[0m", http.StatusNotImplemented) } |