no blob response
This commit is contained in:
parent
71d71d0988
commit
bc22d5a38b
2 changed files with 2 additions and 6 deletions
|
@ -105,10 +105,6 @@ type CreateRequest struct {
|
|||
Stream *bool `json:"stream,omitempty"`
|
||||
}
|
||||
|
||||
type CreateBlobResponse struct {
|
||||
Path string `json:"path"`
|
||||
}
|
||||
|
||||
type DeleteRequest struct {
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
|
|
@ -662,7 +662,7 @@ func HeadBlobHandler(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, api.CreateBlobResponse{Path: path})
|
||||
c.Status(http.StatusOK)
|
||||
}
|
||||
|
||||
func CreateBlobHandler(c *gin.Context) {
|
||||
|
@ -701,7 +701,7 @@ func CreateBlobHandler(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, api.CreateBlobResponse{Path: targetPath})
|
||||
c.Status(http.StatusCreated)
|
||||
}
|
||||
|
||||
var defaultAllowOrigins = []string{
|
||||
|
|
Loading…
Reference in a new issue