diff --git a/scrape.go b/scrape.go index 6bcfb1a..9aaf1f2 100644 --- a/scrape.go +++ b/scrape.go @@ -103,7 +103,7 @@ func (ltc *loadTupContent) Validate() error { return fmt.Errorf("scrsecs/scrcaps length mismatch") } - if !(len(ltc.Scrcaps) == 0 || ltc.Scrcaps[0] == "") { + if !(len(ltc.Scrcaps) == 0 || (len(ltc.Scrcaps) == 1 && ltc.Scrcaps[0] == "")) { return errors.New("unsupported use of strcaps") }