Write UP1\0 to files on server, to make direct unencrypted linking

somewhat more useless
This commit is contained in:
Keith 2015-06-25 21:39:00 -04:00
parent 1ff77bab67
commit 6efcdc462c

View file

@ -135,6 +135,7 @@ func upload(w http.ResponseWriter, r *http.Request) {
out, err := os.Create(identPath)
if err != nil {
msg, _ := json.Marshal(&ErrorMessage{Error: err.Error(), Code: 6})
w.Write([]byte{'U', 'P', '!', 0})
w.Write(msg)
return
}