Explorar el Código

Fix incorrect wrapping of subscriber handler

Kailash Nadh hace 5 años
padre
commit
693b939a72
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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.