|
|
@@ -314,6 +314,7 @@ func (c *SplitHTTPConfig) Build() (proto.Message, error) {
|
|
|
switch c.UplinkDataPlacement {
|
|
|
case "":
|
|
|
c.UplinkDataPlacement = "body"
|
|
|
+ case "body":
|
|
|
case "cookie", "header":
|
|
|
if c.Mode != "packet-up" {
|
|
|
return nil, errors.New("UplinkDataPlacement can be " + c.UplinkDataPlacement + " only in packet-up mode")
|
|
|
@@ -334,7 +335,7 @@ func (c *SplitHTTPConfig) Build() (proto.Message, error) {
|
|
|
switch c.SessionPlacement {
|
|
|
case "":
|
|
|
c.SessionPlacement = "path"
|
|
|
- case "cookie", "header", "query":
|
|
|
+ case "path", "cookie", "header", "query":
|
|
|
default:
|
|
|
return nil, errors.New("unsupported session placement: " + c.SessionPlacement)
|
|
|
}
|
|
|
@@ -342,7 +343,7 @@ func (c *SplitHTTPConfig) Build() (proto.Message, error) {
|
|
|
switch c.SeqPlacement {
|
|
|
case "":
|
|
|
c.SeqPlacement = "path"
|
|
|
- case "cookie", "header", "query":
|
|
|
+ case "path", "cookie", "header", "query":
|
|
|
if c.SessionPlacement == "path" {
|
|
|
return nil, errors.New("SeqPlacement must be path when SessionPlacement is path")
|
|
|
}
|