update headers
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (h *Handler) GetCurrentUser(c echo.Context) error {
|
func (h *Handler) GetCurrentUser(c echo.Context) error {
|
||||||
userId := c.Request().Header.Get("UserId")
|
userId := c.Request().Header.Get("X-User-Id")
|
||||||
|
|
||||||
if userId == "" {
|
if userId == "" {
|
||||||
return c.NoContent(http.StatusBadRequest)
|
return c.NoContent(http.StatusBadRequest)
|
||||||
|
|||||||
Reference in New Issue
Block a user