diff options
| author | Jeff Carr <[email protected]> | 2025-09-08 03:37:37 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-08 03:37:37 -0500 |
| commit | 18796d1a47f8c119daaef2aaf0d6e61e70f10c13 (patch) | |
| tree | 6304416856a0c3b7f5f83762c0bddefcfe48f798 /http.go | |
| parent | da9221ce3445ed0744cc80d357ba08b6618ed685 (diff) | |
http autogen funcs
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -12,7 +12,6 @@ import ( "strings" "go.wit.com/lib/protobuf/gitpb" - "go.wit.com/lib/protobuf/httppb" "go.wit.com/log" ) @@ -104,6 +103,7 @@ func (f *Forge) UpdatePB(check *gitpb.Repos) (*gitpb.Repos, error) { return queryPB.SubmitReposPB(url) } +/* // HTTPRequestToProto converts an *http.Request to our custom HttpRequest protobuf message. func (pb *Patches) AddHttpToPB(r *http.Request) error { if pb == nil { @@ -130,6 +130,7 @@ func (pb *Patches) AddHttpToPB(r *http.Request) error { // pb.HttpRequest.Route = cleanURL(r.URL.Path) return nil } +*/ func getIpSimple(r *http.Request) string { host, _, err := net.SplitHostPort(r.RemoteAddr) |
