master
fangdingjun 8 years ago
parent 57f3d8d283
commit 5254c000ca

@ -18,7 +18,13 @@ type Uwsgi struct {
// NewUwsgi create a new Uwsgi // NewUwsgi create a new Uwsgi
func NewUwsgi(network, addr, urlPrefix string) *Uwsgi { func NewUwsgi(network, addr, urlPrefix string) *Uwsgi {
u := strings.TrimRight(urlPrefix, "/") u := strings.TrimRight(urlPrefix, "/")
return &Uwsgi{&uwsgi.Passenger{network, addr}, u} return &Uwsgi{
Passenger: &uwsgi.Passenger{
Net: network,
Addr: addr,
},
URLPrefix: u,
}
} }
// ServeHTTP implements http.Handler interface // ServeHTTP implements http.Handler interface

Loading…
Cancel
Save