mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-06-13 22:50:53 +02:00
Compare commits
1 Commits
55e93a9df3
...
fe8cdf892c
Author | SHA1 | Date | |
---|---|---|---|
|
fe8cdf892c |
|
@ -1,7 +1,6 @@
|
|||
package handler
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
|
@ -42,7 +41,7 @@ func tryUpstream(ctx *context.Context, giteaClient *gitea.Client,
|
|||
|
||||
// Try to request the file from the Gitea API
|
||||
if !options.Upstream(ctx, giteaClient, redirectsCache) {
|
||||
html.ReturnErrorPage(ctx, fmt.Sprintf("Forge returned %d %s", ctx.StatusCode, http.StatusText(ctx.StatusCode)), ctx.StatusCode)
|
||||
html.ReturnErrorPage(ctx, "forge client failed", ctx.StatusCode)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user