@@ -72,7 +72,7 @@ func (s *Service) bzzUploadHandler(w http.ResponseWriter, r *http.Request) {
7272 Deferred * bool `map:"Swarm-Deferred-Upload"`
7373 Encrypt bool `map:"Swarm-Encrypt"`
7474 IsDir bool `map:"Swarm-Collection"`
75- RLevel redundancy.Level `map:"Swarm-Redundancy-Level" validate:"lte=4 "`
75+ RLevel redundancy.Level `map:"Swarm-Redundancy-Level" validate:"rLevel "`
7676 Act bool `map:"Swarm-Act"`
7777 HistoryAddress swarm.Address `map:"Swarm-Act-History-Address"`
7878 }{}
@@ -387,7 +387,7 @@ func (s *Service) serveReference(logger log.Logger, address swarm.Address, pathV
387387 Cache * bool `map:"Swarm-Cache"`
388388 Strategy * getter.Strategy `map:"Swarm-Redundancy-Strategy"`
389389 FallbackMode * bool `map:"Swarm-Redundancy-Fallback-Mode"`
390- RLevel * redundancy.Level `map:"Swarm-Redundancy-Level" validate:"omitempty,lte=4 "`
390+ RLevel * redundancy.Level `map:"Swarm-Redundancy-Level" validate:"omitempty,rLevel "`
391391 ChunkRetrievalTimeout * string `map:"Swarm-Chunk-Retrieval-Timeout"`
392392 }{}
393393
@@ -599,7 +599,7 @@ func (s *Service) serveManifestEntry(
599599func (s * Service ) downloadHandler (logger log.Logger , w http.ResponseWriter , r * http.Request , reference swarm.Address , additionalHeaders http.Header , etag , headersOnly bool , rootCh swarm.Chunk ) {
600600 headers := struct {
601601 Strategy * getter.Strategy `map:"Swarm-Redundancy-Strategy"`
602- RLevel * redundancy.Level `map:"Swarm-Redundancy-Level" validate:"omitempty,lte=4 "`
602+ RLevel * redundancy.Level `map:"Swarm-Redundancy-Level" validate:"omitempty,rLevel "`
603603 FallbackMode * bool `map:"Swarm-Redundancy-Fallback-Mode"`
604604 ChunkRetrievalTimeout * string `map:"Swarm-Chunk-Retrieval-Timeout"`
605605 LookaheadBufferSize * int `map:"Swarm-Lookahead-Buffer-Size"`
0 commit comments