liubao68 commented on code in PR #3801:
URL:
https://github.com/apache/servicecomb-java-chassis/pull/3801#discussion_r1200257209
##########
foundations/foundation-common/src/main/java/org/apache/servicecomb/foundation/common/http/HttpUtils.java:
##########
@@ -46,7 +46,7 @@ public static String parseParamFromHeaderValue(String
headerValue, String paramN
}
if (paramName.equalsIgnoreCase(trimValue.substring(0, idx))) {
- return trimValue.replaceAll("\"", "").substring(idx + 1);
+ return trimValue.replaceAll("\"", "").substring(idx + 1).trim();
Review Comment:
```
for (String value : headerValue.split(";")) {
int idx = value.indexOf('=');
if (idx == -1) {
continue;
}
if (paramName.equalsIgnoreCase(value.substring(0, idx).trim())) {
return value.substring(idx + 1).trim().replaceAll("\"", "");
}
}
```
Is this better?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]