Write UP1\0 to files on server, to make direct unencrypted linking
somewhat more useless
This commit is contained in:
parent
1ff77bab67
commit
6efcdc462c
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue