fix: fix template edit overriding with flag defaults (#11564)

This commit is contained in:
Jon Ayers
2024-01-11 16:18:46 -06:00
committed by GitHub
parent eb8d85f432
commit aecdafdcf2
7 changed files with 241 additions and 31 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
package promoauth
import (
"fmt"
"net/http"
"strconv"
"time"
"golang.org/x/xerrors"
)
type rateLimits struct {
@@ -81,7 +82,7 @@ func (p *headerParser) string(key string) string {
v := p.header.Get(key)
if v == "" {
p.errors[key] = fmt.Errorf("missing header %q", key)
p.errors[key] = xerrors.Errorf("missing header %q", key)
}
return v
}