tangled
alpha
login
or
join now
bad-example.com
/
core
forked from
tangled.org/core
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
use https for knot ops
anirudh.fi
11 months ago
45de8d7f
89d15202
+3
-3
2 changed files
expand all
collapse all
unified
split
appview
state
git_http.go
signer.go
+2
-2
appview/state/git_http.go
···
15
15
repo := chi.URLParam(r, "repo")
16
16
17
17
// TODO: make this https for production!
18
18
-
targetURL := fmt.Sprintf("http://%s/%s/%s/info/refs?%s", knot, user.DID, repo, r.URL.RawQuery)
18
18
+
targetURL := fmt.Sprintf("https://%s/%s/%s/info/refs?%s", knot, user.DID, repo, r.URL.RawQuery)
19
19
resp, err := http.Get(targetURL)
20
20
if err != nil {
21
21
http.Error(w, err.Error(), http.StatusInternalServerError)
···
48
48
knot := r.Context().Value("knot").(string)
49
49
repo := chi.URLParam(r, "repo")
50
50
// TODO: make this https for production!
51
51
-
targetURL := fmt.Sprintf("http://%s/%s/%s/git-upload-pack?%s", knot, user.DID, repo, r.URL.RawQuery)
51
51
+
targetURL := fmt.Sprintf("https://%s/%s/%s/git-upload-pack?%s", knot, user.DID, repo, r.URL.RawQuery)
52
52
client := &http.Client{}
53
53
54
54
// Create new request
+1
-1
appview/state/signer.go
···
41
41
},
42
42
}
43
43
44
44
-
url, err := url.Parse(fmt.Sprintf("http://%s", domain))
44
44
+
url, err := url.Parse(fmt.Sprintf("https://%s", domain))
45
45
if err != nil {
46
46
return nil, err
47
47
}