Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
MXWXZ committed Sep 9, 2019
1 parent 90c3f86 commit fe8c377
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/api/tag/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ func getTag(c *gin.Context) {
c.JSON(500, err)
return
}
if resp.StatusCode != http.StatusOK {
c.AbortWithStatus(resp.StatusCode)
return
}
defer resp.Body.Close()

body, err := ioutil.ReadAll(resp.Body)
if err != nil {
Expand Down

0 comments on commit fe8c377

Please sign in to comment.