mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix x-client-id error message
This commit is contained in:
parent
6ba0786608
commit
853bfd5f9b
@ -66,7 +66,7 @@ func SanitizePath(path string) error {
|
||||
func GetClientId(c echo.Context) (string, error) {
|
||||
key := c.Request().Header.Get("X-CLIENT-ID")
|
||||
if key == "" {
|
||||
return "", errors.New("missing client id. Please specify the X-CLIENT-ID header to a guid constant for the lifetime of the player (but unique per instance)")
|
||||
return "", echo.NewHTTPError(http.StatusBadRequest, "missing client id. Please specify the X-CLIENT-ID header to a guid constant for the lifetime of the player (but unique per instance)")
|
||||
}
|
||||
return key, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user