allow download of named overlay

This commit is contained in:
Christian Goll
2022-03-11 14:52:01 +01:00
parent 5568b082c4
commit d4e42b7b83
2 changed files with 14 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ type parserInfo struct {
remoteport int
assetkey string
uuid string
overlay string
}
func parseReq(req *http.Request) (parserInfo, error) {
@@ -35,7 +36,9 @@ func parseReq(req *http.Request) (parserInfo, error) {
if len(req.URL.Query()["uuid"]) > 0 {
ret.uuid = req.URL.Query()["uuid"][0]
}
if len(req.URL.Query()["overlay"]) > 0 {
ret.overlay = req.URL.Query()["overlay"][0]
}
if ret.hwaddr == "" {
return ret, errors.New("no hwaddr encoded in GET")
}