move tests to gh actions (#9461)
This commit is contained in:
parent
2db8552a87
commit
3916f7b8b7
8 changed files with 72 additions and 11 deletions
|
|
@ -149,7 +149,8 @@ func ValidHeader(header string) bool {
|
|||
// ValidCacheDuration checks if the provided string is a valid cache duration
|
||||
// spec: [code ...] [time ...];
|
||||
// with: code is an http status code
|
||||
// time must match the time regex and may appear multiple times, e.g. `1h 30m`
|
||||
//
|
||||
// time must match the time regex and may appear multiple times, e.g. `1h 30m`
|
||||
func ValidCacheDuration(duration string) bool {
|
||||
elements := strings.Split(duration, " ")
|
||||
seenDuration := false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue