shareLinks improvements #105

Merged
amigan merged 2 commits from shareLinks into trunk 2025-01-22 22:38:24 -05:00
Showing only changes of commit 5ae5461eab - Show all commits

View file

@ -128,6 +128,7 @@ func (sa *shareAPI) routeShare(w http.ResponseWriter, r *http.Request) {
}
var rType ShareRequestType
if params.Type != nil {
rType = ShareRequestType(*params.Type)
} else {
@ -138,6 +139,7 @@ func (sa *shareAPI) routeShare(w http.ResponseWriter, r *http.Request) {
case shares.EntityIncident:
rType = ShareRequestIncident
}
w.Header().Set("X-Share-Type", string(rType))
}
if !rType.IsValid() {