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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
jc.Encode(map[string]string{"hash": cidStr})
|
jc.Encode(&SmallUploadResponse{
|
||||||
|
CID: cidStr,
|
||||||
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue