Skip to content

Commit ab1b62b

Browse files
committed
fix: request url scheme
1 parent ff77384 commit ab1b62b

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

handler/http/parser.discord.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"github.com/labstack/echo/v4"
1010
"github.com/mocha-bot/mochus/core/entity"
1111
cookiey "github.com/mocha-bot/mochus/pkg/cookiey"
12-
"github.com/mocha-bot/mochus/pkg/echoy"
1312
zLog "github.com/rs/zerolog/log"
1413
)
1514

@@ -30,7 +29,7 @@ func parseOauthCallbackRequest(c echo.Context) (*entity.OauthCallbackRequest, er
3029
// Construct the final URL for the request URL
3130
// Discord known this as a redirect_uri to verify the request
3231
finalURL := url.URL{
33-
Scheme: echoy.GetScheme(c),
32+
Scheme: c.Scheme(),
3433
Host: c.Request().Host,
3534
Path: c.Request().URL.Path,
3635
}

pkg/echoy/scheme.go

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)