mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
HTTPD, WebDAV: use http.ResponseController
backport from Enterprise edition Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -532,11 +532,8 @@ func (s *httpdServer) checkPublicShare(w http.ResponseWriter, r *http.Request, v
|
||||
return share, nil, err
|
||||
}
|
||||
connID := xid.New().String()
|
||||
connection := &Connection{
|
||||
BaseConnection: common.NewBaseConnection(connID, common.ProtocolHTTPShare, util.GetHTTPLocalAddress(r),
|
||||
r.RemoteAddr, user),
|
||||
request: r,
|
||||
}
|
||||
baseConn := common.NewBaseConnection(connID, common.ProtocolHTTPShare, util.GetHTTPLocalAddress(r), r.RemoteAddr, user)
|
||||
connection := newConnection(baseConn, w, r)
|
||||
|
||||
return share, connection, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user