forked from tcp.direct/tcp.ac
making a fucking STATEMENT
This commit is contained in:
parent
6f50e7bbbf
commit
60a04eb999
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
{"max_datafile_size":1048576,"max_key_size":64,"max_value_size":0,"sync":false,"autorecovery":false,"DirFileModeBeforeUmask":448,"FileFileModeBeforeUmask":384}
|
|
BIN
img.db/index
BIN
img.db/index
Binary file not shown.
3
main.go
3
main.go
@ -108,7 +108,7 @@ func imgPost(c *gin.Context) {
|
|||||||
md5DB.Put([]byte(hash),[]byte(uid))
|
md5DB.Put([]byte(hash),[]byte(uid))
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("[imgPost][" + uid + "] duplicate file found in md5 database, returning URL for uid: " + string(imgRef))
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,6 +122,7 @@ func imgPost(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("[imgPost][" + uid + "] saved to database successfully, returning new URL")
|
fmt.Println("[imgPost][" + uid + "] saved to database successfully, returning new URL")
|
||||||
|
c.String(200,baseUrl + "i/" + string(uid) + "\n")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user