Skip to content

Commit

Permalink
Merge pull request wyouflf#385 from BlackJackLi/master
Browse files Browse the repository at this point in the history
修复在多线程调用参数相关方法的时候有概率造成参数丢失的问题
  • Loading branch information
wyouflf authored Feb 13, 2017
2 parents 6610d01 + 6375f8c commit 0e29f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xutils/src/main/java/org/xutils/http/BaseParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ public String toString() {
return sb.toString();
}

private void checkBodyParams() {
private synchronized void checkBodyParams() {
if (bodyParams.isEmpty()) return;

if (!HttpMethod.permitsRequestBody(method)
Expand Down

0 comments on commit 0e29f2c

Please sign in to comment.