forked from tcp.direct/tcp.ac
1
0
Fork 0

making a fucking STATEMENT

This commit is contained in:
kayos@tcp.direct 2020-12-16 00:17:37 -08:00
parent 6f50e7bbbf
commit 60a04eb999
5 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -1 +0,0 @@
{"max_datafile_size":1048576,"max_key_size":64,"max_value_size":0,"sync":false,"autorecovery":false,"DirFileModeBeforeUmask":448,"FileFileModeBeforeUmask":384}

Binary file not shown.

View File

View File

@ -108,7 +108,7 @@ func imgPost(c *gin.Context) {
md5DB.Put([]byte(hash),[]byte(uid))
} else {
fmt.Println("[imgPost][" + uid + "] duplicate file found in md5 database, returning URL for uid: " + string(imgRef))
c.String(200,baseUrl + "i/" + string(imgRef))
c.String(200,baseUrl + "i/" + string(imgRef) + "\n")
return
}
@ -122,6 +122,7 @@ func imgPost(c *gin.Context) {
return
} else {
fmt.Println("[imgPost][" + uid + "] saved to database successfully, returning new URL")
c.String(200,baseUrl + "i/" + string(uid) + "\n")
}
}