diff options
author | luzpaz <luzpaz@users.noreply.github.com> | 2022-07-12 17:32:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 23:32:37 +0200 |
commit | d29d6d1991496cc688e9418db4960ca945fd9d6b (patch) | |
tree | 878dcc8a2c8621f9328d5093c6003d664d6fe9ed /modules/web | |
parent | 966e7bdc9b875abb7192cd572beec40123a815da (diff) | |
download | gitea-d29d6d1991496cc688e9418db4960ca945fd9d6b.tar.gz gitea-d29d6d1991496cc688e9418db4960ca945fd9d6b.zip |
Fix various typos (#20338)
* Fix various typos
Found via `codespell -q 3 -S ./options/locale,./options/license,./public/vendor -L actived,allways,attachements,ba,befores,commiter,pullrequest,pullrequests,readby,splitted,te,unknwon`
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules/web')
-rw-r--r-- | modules/web/middleware/locale.go | 2 | ||||
-rw-r--r-- | modules/web/routing/context.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/web/middleware/locale.go b/modules/web/middleware/locale.go index de8e497965..f4018527c0 100644 --- a/modules/web/middleware/locale.go +++ b/modules/web/middleware/locale.go @@ -60,7 +60,7 @@ func SetLocaleCookie(resp http.ResponseWriter, lang string, expiry int) { } // DeleteLocaleCookie convenience function to delete the locale cookie consistently -// Setting the lang cookie will trigger the middleware to reset the language ot previous state. +// Setting the lang cookie will trigger the middleware to reset the language to previous state. func DeleteLocaleCookie(resp http.ResponseWriter) { SetCookie(resp, "lang", "", -1, diff --git a/modules/web/routing/context.go b/modules/web/routing/context.go index d3c7759e64..7e263db5a2 100644 --- a/modules/web/routing/context.go +++ b/modules/web/routing/context.go @@ -25,7 +25,7 @@ func UpdateFuncInfo(ctx context.Context, funcInfo *FuncInfo) { record.lock.Unlock() } -// MarkLongPolling marks the reuqest is a long-polling request, and the logger may output different message for it +// MarkLongPolling marks the request is a long-polling request, and the logger may output different message for it func MarkLongPolling(resp http.ResponseWriter, req *http.Request) { record, ok := req.Context().Value(contextKey).(*requestRecord) if !ok { |