Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #382 from aandryashin/master
Browse files Browse the repository at this point in the history
Add https to download path.
  • Loading branch information
vania-pooh authored Aug 31, 2023
2 parents df62d38 + 2f3788f commit 1476fdd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,9 @@ func proxyStatic(w http.ResponseWriter, r *http.Request, route string, invalidUr
(&httputil.ReverseProxy{
Director: func(r *http.Request) {
r.URL.Scheme = "http"
if h.Scheme != "" {
r.URL.Scheme = h.Scheme
}
r.URL.Host = h.Net()
r.URL.Path = pathProvider(remainder)
log.Printf("[%d] [-] [%s] [%s] [%s] [%s] [-] [%s] [-] [-]\n", id, proxyingMessage, user, remote, r.URL, remainder)
Expand Down

0 comments on commit 1476fdd

Please sign in to comment.