remove spaces in templates

This commit is contained in:
wing328
2017-09-06 16:54:36 +08:00
parent f623aa1f5b
commit b8183fbd09
4 changed files with 14 additions and 14 deletions

View File

@@ -121,7 +121,7 @@ public class Play24CallFactory implements okhttp3.Call.Factory {
responseCallback.onFailure(call, new IOException(throwable));
}
}
});
}
@@ -178,9 +178,9 @@ public class Play24CallFactory implements okhttp3.Call.Factory {
public BufferedSource source() {
return new Buffer().write(r.asByteArray());
}
});
for (Map.Entry<String, List<String>> entry : r.getAllHeaders().entrySet()) {
for (String value : entry.getValue()) {
builder.addHeader(entry.getKey(), value);
@@ -200,7 +200,7 @@ public class Play24CallFactory implements okhttp3.Call.Factory {
public void cancel() {
throw new UnsupportedOperationException("Not supported");
}
@Override
public PlayWSCall clone() {
throw new UnsupportedOperationException("Not supported");

View File

@@ -146,7 +146,7 @@ public class Play25CallFactory implements okhttp3.Call.Factory {
Buffer buffer = new Buffer();
request.body().writeTo(buffer);
wsRequest.setBody(buffer.inputStream());
MediaType mediaType = request.body().contentType();
if (mediaType != null) {
wsRequest.setContentType(mediaType.toString());
@@ -175,7 +175,7 @@ public class Play25CallFactory implements okhttp3.Call.Factory {
public BufferedSource source() {
return new Buffer().write(r.asByteArray());
}
});
for (Map.Entry<String, List<String>> entry : r.getAllHeaders().entrySet()) {
@@ -197,7 +197,7 @@ public class Play25CallFactory implements okhttp3.Call.Factory {
public void cancel() {
throw new UnsupportedOperationException("Not supported");
}
@Override
public PlayWSCall clone() {
throw new UnsupportedOperationException("Not supported");