소스 검색

Fix incorrect wrapping of subscriber handler

Kailash Nadh 5 년 전
부모
커밋
693b939a72
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      subscribers.go

+ 1 - 1
subscribers.go

@@ -189,7 +189,7 @@ func handleCreateSubscriber(c echo.Context) error {
 	// Hand over to the GET handler to return the last insertion.
 	c.SetParamNames("id")
 	c.SetParamValues(fmt.Sprintf("%d", subID))
-	return c.JSON(http.StatusOK, handleGetSubscriber(c))
+	return handleGetSubscriber(c)
 }
 
 // handleUpdateSubscriber handles modification of a subscriber.