Update version
This commit is contained in:
@@ -11,9 +11,7 @@
|
||||
</parent>
|
||||
<groupId>com.fizzgate</groupId>
|
||||
<artifactId>fizz-bootstrap</artifactId>
|
||||
|
||||
<version>2.3.3-beta1</version>
|
||||
|
||||
<version>2.3.0-we-code</version>
|
||||
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
|
||||
@@ -5,9 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>fizz-gateway-community</artifactId>
|
||||
<groupId>com.fizzgate</groupId>
|
||||
|
||||
<version>2.3.3-beta1</version>
|
||||
|
||||
<version>2.3.0-we-code</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@@ -28,11 +28,7 @@ import org.springframework.web.server.ServerWebExchange;
|
||||
import org.springframework.web.server.ServerWebExchangeDecorator;
|
||||
import reactor.core.publisher.Mono;
|
||||
import we.spring.http.server.reactive.ext.FizzServerHttpRequestDecorator;
|
||||
|
||||
import we.util.Consts;
|
||||
|
||||
|
||||
|
||||
import we.util.NettyDataBufferUtils;
|
||||
import we.util.ThreadContext;
|
||||
|
||||
@@ -77,9 +73,7 @@ public class FizzServerWebExchangeDecorator extends ServerWebExchangeDecorator {
|
||||
if (idx == -1) {
|
||||
result.add(URLDecoder.decode(pair, charset.name()), null);
|
||||
} else {
|
||||
|
||||
String name = URLDecoder.decode(pair.substring(0, idx), charset.name());
|
||||
|
||||
String value = URLDecoder.decode(pair.substring(idx + 1), charset.name());
|
||||
result.add(name, value);
|
||||
}
|
||||
@@ -129,26 +123,24 @@ public class FizzServerWebExchangeDecorator extends ServerWebExchangeDecorator {
|
||||
int fs = fieldValuesEntries.size(), cnt = 0;
|
||||
try {
|
||||
for (Map.Entry<String, List<String>> fieldValuesEntry : fieldValuesEntries) {
|
||||
String field = fieldValuesEntry.getKey();
|
||||
List<String> values = fieldValuesEntry.getValue();
|
||||
if (CollectionUtils.isEmpty(values)) {
|
||||
|
||||
b.append(URLEncoder.encode(field, Consts.C.UTF8));
|
||||
} else {
|
||||
int vs = values.size();
|
||||
for (int i = 0; i < vs; ) {
|
||||
b.append(URLEncoder.encode(field, Consts.C.UTF8))
|
||||
.append('=')
|
||||
.append(URLEncoder.encode(values.get(i), Consts.C.UTF8));
|
||||
|
||||
if ((++i) != vs) {
|
||||
b.append('&');
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((++cnt) != fs) {
|
||||
b.append('&');
|
||||
String field = fieldValuesEntry.getKey();
|
||||
List<String> values = fieldValuesEntry.getValue();
|
||||
if (CollectionUtils.isEmpty(values)) {
|
||||
b.append(URLEncoder.encode(field, Consts.C.UTF8));
|
||||
} else {
|
||||
int vs = values.size();
|
||||
for (int i = 0; i < vs; ) {
|
||||
b.append(URLEncoder.encode(field, Consts.C.UTF8))
|
||||
.append('=')
|
||||
.append(URLEncoder.encode(values.get(i), Consts.C.UTF8));
|
||||
if ((++i) != vs) {
|
||||
b.append('&');
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((++cnt) != fs) {
|
||||
b.append('&');
|
||||
}
|
||||
}
|
||||
} catch (UnsupportedEncodingException ex) {
|
||||
throw new IllegalStateException(ex);
|
||||
|
||||
@@ -5,9 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>fizz-gateway-community</artifactId>
|
||||
<groupId>com.fizzgate</groupId>
|
||||
|
||||
<version>2.3.3-beta1</version>
|
||||
|
||||
<version>2.3.0-we-code</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@@ -61,9 +61,7 @@ public class RequestBodyPlugin implements FizzPluginFilter {
|
||||
} finally {
|
||||
NettyDataBufferUtils.release(body);
|
||||
}
|
||||
|
||||
// requestDecorator.getHeaders().remove(HttpHeaders.CONTENT_LENGTH);
|
||||
|
||||
}
|
||||
ServerWebExchange mutatedExchange = exchange.mutate().request(requestDecorator).build();
|
||||
ServerWebExchange newExchange = mutatedExchange;
|
||||
@@ -72,10 +70,8 @@ public class RequestBodyPlugin implements FizzPluginFilter {
|
||||
newExchange = new FizzServerWebExchangeDecorator(mutatedExchange);
|
||||
}
|
||||
if (log.isDebugEnabled()) {
|
||||
|
||||
String traceId = WebUtils.getTraceId(exchange);
|
||||
log.debug(traceId + " request is decorated", LogService.BIZ_ID, traceId);
|
||||
|
||||
}
|
||||
return FizzPluginFilterChain.next(newExchange);
|
||||
}
|
||||
|
||||
@@ -5,9 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>fizz-gateway-community</artifactId>
|
||||
<groupId>com.fizzgate</groupId>
|
||||
|
||||
<version>2.3.3-beta1</version>
|
||||
|
||||
<version>2.3.0-we-code</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@@ -5,9 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>fizz-gateway-community</artifactId>
|
||||
<groupId>com.fizzgate</groupId>
|
||||
|
||||
<version>2.3.3-beta1</version>
|
||||
|
||||
<version>2.3.0-we-code</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
4
pom.xml
4
pom.xml
@@ -34,9 +34,7 @@
|
||||
<artifactId>fizz-gateway-community</artifactId>
|
||||
<name>${project.artifactId}</name>
|
||||
<description>fizz gateway community</description>
|
||||
|
||||
<version>2.3.3-beta1</version>
|
||||
|
||||
<version>2.3.0-we-code</version>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>fizz-common</module>
|
||||
|
||||
Reference in New Issue
Block a user