fix: bad response for existing file
This commit is contained in:
parent
17fdad7d07
commit
8161d36f0e
|
@ -167,7 +167,9 @@ func (h *HttpHandler) SmallFileUpload(jc jape.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
jc.Encode(map[string]string{"hash": cidStr})
|
||||
jc.Encode(&SmallUploadResponse{
|
||||
CID: cidStr,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue