Live: check schema equality between push messages (#34548)

This commit is contained in:
Ryan McKinley
2021-05-27 12:55:42 +03:00
committed by GitHub
parent c59a2e1bcf
commit 67028af99e
11 changed files with 54 additions and 100 deletions
+1 -7
View File
@@ -6,15 +6,9 @@ import (
)
const (
unstableSchemaParam = "gf_live_unstable_schema"
frameFormatParam = "gf_live_frame_format"
frameFormatParam = "gf_live_frame_format"
)
// UnstableSchemaFromValues extracts unstable schema tip from url values.
func UnstableSchemaFromValues(values url.Values) bool {
return strings.ToLower(values.Get(unstableSchemaParam)) == "true" || values.Get(unstableSchemaParam) == "1"
}
// FrameFormatFromValues extracts frame format tip from url values.
func FrameFormatFromValues(values url.Values) string {
frameFormat := strings.ToLower(values.Get(frameFormatParam))