allow ximport by handle as well
Ted Unangst tedu@tedunangst.com
Mon, 08 Jul 2019 21:18:37 -0400
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
honk.go
→
honk.go
@@ -423,8 +423,13 @@ }
func ximport(w http.ResponseWriter, r *http.Request) { xid := r.FormValue("xid") + x := investigate(xid) + if x != "" { + xid = x + } j, err := GetJunk(xid) if err != nil { + http.Error(w, "error getting external object", http.StatusInternalServerError) log.Printf("error getting external object: %s", err) return }