mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-06 23:16:33 +00:00
ef3a74a1ba
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
19 lines
429 B
Go
19 lines
429 B
Go
// Copyright 2022 The Gitea Authors. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package bots
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"code.gitea.io/gitea/modules/log"
|
|
)
|
|
|
|
func grpcHandler(h http.Handler) http.HandlerFunc {
|
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
log.Info("Got connection: %v", r.Proto)
|
|
h.ServeHTTP(w, r)
|
|
})
|
|
}
|