fix:optimize expression parser V1. (#642)

pull/648/head
Haotian Zhang 2 years ago committed by GitHub
parent 83bf200a1b
commit 718045e889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,7 +5,7 @@
- [Optimize: remove discovery module useless code](https://github.com/Tencent/spring-cloud-tencent/pull/595)
- [Optimize: remove useless code for rest template router](https://github.com/Tencent/spring-cloud-tencent/pull/601)
- [Optimize: optimize configuration conditional & optimize config data tips](https://github.com/Tencent/spring-cloud-tencent/pull/603)
- [Automatically transmit some headers specified by a environment varaible that directly defines header keys.](https://github.com/Tencent/spring-cloud-tencent/pull/606)
- [Automatically transmit some headers specified by an environment variable that directly defines header keys.](https://github.com/Tencent/spring-cloud-tencent/pull/606)
- [Optimize: Maybe remove Chinese characters](https://github.com/Tencent/spring-cloud-tencent/pull/607)
- [Optimize: InstanceId of PolarisRegistration and PolarisServiceRegistry](https://github.com/Tencent/spring-cloud-tencent/pull/610)
- [ fix pr #606 cause ci fail](https://github.com/Tencent/spring-cloud-tencent/pull/613)
@ -19,3 +19,4 @@
- [Optimize:optimize transfer](https://github.com/Tencent/spring-cloud-tencent/pull/636)
- [fix:cancel reporting useless metadata.](https://github.com/Tencent/spring-cloud-tencent/pull/639)
- [Feature: support read config file from local file system](https://github.com/Tencent/spring-cloud-tencent/pull/640)
- [fix:optimize expression parser V1.](https://github.com/Tencent/spring-cloud-tencent/pull/642)

@ -53,7 +53,7 @@ public class ExpressionParserV1 implements ExpressionParser {
@Override
public String parseHeaderKey(String expression) {
return expression.substring(LABEL_HEADER_PREFIX_LEN, expression.length() - 1);
return StringUtils.substring(expression, LABEL_HEADER_PREFIX_LEN, expression.length() - 1);
}
@Override
@ -63,7 +63,7 @@ public class ExpressionParserV1 implements ExpressionParser {
@Override
public String parseQueryKey(String expression) {
return expression.substring(LABEL_QUERY_PREFIX_LEN, expression.length() - 1);
return StringUtils.substring(expression, LABEL_QUERY_PREFIX_LEN, expression.length() - 1);
}
@Override
@ -73,7 +73,7 @@ public class ExpressionParserV1 implements ExpressionParser {
@Override
public String parseCookieKey(String expression) {
return expression.substring(LABEL_COOKIE_PREFIX_LEN, expression.length() - 1);
return StringUtils.substring(expression, LABEL_COOKIE_PREFIX_LEN, expression.length() - 1);
}
@Override

@ -73,7 +73,7 @@
<revision>1.8.0-2021.0.3-SNAPSHOT</revision>
<!-- Dependencies -->
<polaris.version>1.9.0-SNAPSHOT</polaris.version>
<polaris.version>1.9.1</polaris.version>
<guava.version>31.0.1-jre</guava.version>
<logback.version>1.2.11</logback.version>
<mocktio.version>4.5.1</mocktio.version>

Loading…
Cancel
Save