diff --git a/internal/net/util.go b/internal/net/util.go index 99f95c9a..4347e2c4 100644 --- a/internal/net/util.go +++ b/internal/net/util.go @@ -327,7 +327,7 @@ func GetRangedHttpReader(readCloser io.ReadCloser, offset, length int64) (io.Rea length_int = int(length) if offset > 100*1024*1024 { - log.Warnf("offset is more than 100MB, if loading data from internet, high-latency and wasting of bandwith is expected") + log.Warnf("offset is more than 100MB, if loading data from internet, high-latency and wasting of bandwidth is expected") } if _, err := io.Copy(io.Discard, io.LimitReader(readCloser, offset)); err != nil { diff --git a/server/handles/ssologin.go b/server/handles/ssologin.go index b71179b6..70298a9c 100644 --- a/server/handles/ssologin.go +++ b/server/handles/ssologin.go @@ -398,7 +398,7 @@ func SSOLoginCallback(c *gin.Context) { } userID := utils.Json.Get(resp.Body(), idField).ToString() if utils.SliceContains([]string{"", "0"}, userID) { - common.ErrorResp(c, errors.New("error occured"), 400) + common.ErrorResp(c, errors.New("error occurred"), 400) return } if argument == "get_sso_id" {