实现Web静态文件分发

This commit is contained in:
GoEdgeLab
2020-09-26 11:21:43 +08:00
parent 16bbe7d380
commit 389213272e
4 changed files with 24 additions and 10 deletions

View File

@@ -143,7 +143,7 @@ func (this *HTTPLocationService) FindAndInitHTTPLocationWebConfig(ctx context.Co
}
if webId <= 0 {
webId, err = models.SharedHTTPWebDAO.CreateWeb("")
webId, err = models.SharedHTTPWebDAO.CreateWeb(nil)
if err != nil {
return nil, err
}