[server][cast] convert deviceCode input to upperCase
This commit is contained in:
parent
99b13d18b0
commit
ad5cfdc6db
1 changed files with 6 additions and 6 deletions
|
@ -1,16 +1,16 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
entity "github.com/ente-io/museum/ente/cast"
|
||||
"github.com/ente-io/museum/pkg/controller/cast"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/ente-io/museum/ente"
|
||||
entity "github.com/ente-io/museum/ente/cast"
|
||||
"github.com/ente-io/museum/pkg/controller"
|
||||
"github.com/ente-io/museum/pkg/controller/cast"
|
||||
"github.com/ente-io/museum/pkg/utils/handler"
|
||||
"github.com/ente-io/stacktrace"
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// CastHandler exposes request handlers for publicly accessible collections
|
||||
|
@ -126,7 +126,7 @@ func (h *CastHandler) GetDiff(c *gin.Context) {
|
|||
}
|
||||
|
||||
func getDeviceCode(c *gin.Context) string {
|
||||
return c.Param("deviceCode")
|
||||
return strings.ToUpper(c.Param("deviceCode"))
|
||||
}
|
||||
|
||||
func (h *CastHandler) getFileForType(c *gin.Context, objectType ente.ObjectType) {
|
||||
|
|
Loading…
Add table
Reference in a new issue