Skip to content

Commit

Permalink
Update OkHttp to v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbdean committed Dec 16, 2014
1 parent 0c39067 commit 2da988f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ allprojects {
}

dependencies {
compile group: 'com.squareup.okhttp', name: 'okhttp', version: '2.0.0'
compile group: 'com.squareup.okhttp', name: 'okhttp', version: '2.1.0'
compile group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version: '1.9.+'
compile group: 'com.google.guava', name: 'guava', version: '18.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.+'
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Nov 28 20:51:05 EST 2014
#Mon Dec 15 22:45:42 EST 2014
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip
2 changes: 1 addition & 1 deletion src/main/java/net/dean/jraw/http/HttpLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void log(RestRequest r) {
if (isEnabled(REQUEST_DESCRIPTOR)) {
l.info("{} {}", r.getMethod(), r.getUrl());
}
if (isEnabled(REQUEST_FORM_DATA) && HttpMethod.hasRequestBody(r.getMethod())) {
if (isEnabled(REQUEST_FORM_DATA) && HttpMethod.permitsRequestBody(r.getMethod())) {
logMap("form-data", r.getFormArgs(), r.getSensitiveArgs());
}
if (isEnabled(REQUEST_HEADERS)) {
Expand Down

0 comments on commit 2da988f

Please sign in to comment.