Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
youfanx committed Dec 5, 2024
1 parent 608fb55 commit d59065a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rxlib-x/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<mysql.version>5.1.49</mysql.version>
<HikariCP.version>4.0.3</HikariCP.version>
<druid.version>1.2.21</druid.version>
<redisson.version>3.33.0</redisson.version>
<redisson.version>3.38.1</redisson.version>
<guava.version>32.1.1-jre</guava.version>

<javaxMail.version>1.6.2</javaxMail.version>
Expand Down
2 changes: 1 addition & 1 deletion rxlib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<byte-buddy.version>1.15.7</byte-buddy.version>
<zip4j.version>2.11.3</zip4j.version>
<h2.version>2.2.224</h2.version>
<netty.version>4.1.111.Final</netty.version>
<netty.version>4.1.114.Final</netty.version>
<!--1.78.1有问题-->
<bcprov.version>1.78</bcprov.version>
<okhttp.version>4.12.0</okhttp.version>
Expand Down
4 changes: 2 additions & 2 deletions rxlib/src/main/java/org/rx/core/ObjectPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public synchronized boolean isLeaked(long threshold) {
final PredicateFunc<T> validateHandler;
final BiAction<T> passivateHandler;
final ConcurrentLinkedDeque<IdentityWrapper<T>> stack = new ConcurrentLinkedDeque<>();
final ConcurrentHashMap<IdentityWrapper<T>, ObjectConf> conf = new ConcurrentHashMap<>();
// final HashMap<IdentityWrapper<T>, ObjectConf> conf = new HashMap<>();
// final ConcurrentHashMap<IdentityWrapper<T>, ObjectConf> conf = new ConcurrentHashMap<>();
final HashMap<IdentityWrapper<T>, ObjectConf> conf = new HashMap<>();
final AtomicInteger size = new AtomicInteger();
@Getter
final int minSize;
Expand Down
4 changes: 2 additions & 2 deletions rxlib/src/main/java/org/rx/net/http/HttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public static Map<String, String> decodeQueryString(String url) {
}

public static Map<String, String> decodeHeader(String raw) {
return decodeHeader(Arrays.toList(raw.split(Pattern.quote("\n"))));
return decodeHeader(Arrays.toList(raw.trim().split(Pattern.quote("\n"))));
}

@SneakyThrows
Expand All @@ -342,7 +342,7 @@ public static Map<String, String> decodeHeader(List<String> pairs) {
}

for (String pair : pairs) {
int idx = pair.indexOf(Pattern.quote(":"));
int idx = pair.indexOf(":");
String key = idx > 0 ? URLDecoder.decode(pair.substring(0, idx), StandardCharsets.UTF_8.name()) : pair;
String value = idx > 0 && pair.length() > idx + 1 ? URLDecoder.decode(pair.substring(idx + 1), StandardCharsets.UTF_8.name()).trim() : Strings.EMPTY;
map.put(key, value);
Expand Down

0 comments on commit d59065a

Please sign in to comment.