rawlinp commented on a change in pull request #5345:
URL: https://github.com/apache/trafficcontrol/pull/5345#discussion_r544575515
##########
File path: lib/go-tc/deliveryservices.go
##########
@@ -541,6 +541,17 @@ func (ds *DeliveryServiceNullableV30)
validateTypeFields(tx *sql.Tx) error {
}
return nil
})),
+ "maxRequestHeaderBytes": validation.Validate(ds,
+ validation.By(func(dsi interface{}) error {
+ ds := dsi.(*DeliveryServiceNullableV30)
+ if ds.MaxRequestHeaderBytes == nil {
+ return
fmt.Errorf("maxRequestHeaderBytes empty, must be a valid positive value")
+ }
+ if *ds.MaxRequestHeaderBytes <= 0 {
+ return
fmt.Errorf("maxRequestHeaderBytes must be a valid positive value")
Review comment:
ditto prior comment
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]