Skip to content

Commit 1a0ae49

Browse files
fix multipart format
1 parent d63090b commit 1a0ae49

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

defer/server/src/main/java/com/graphqljava/defer/GraphQLController.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ public void onComplete() {
159159

160160
}
161161

162-
163162
private class DeferPart {
164163

165164
private Object body;
@@ -172,8 +171,8 @@ public String write() {
172171
StringBuilder result = new StringBuilder();
173172
String bodyString = bodyToString();
174173
result.append("Content-Type: application/json").append(CRLF);
175-
result.append("Content-Length: ").append(bodyString.length() + 2).append(CRLF).append(CRLF);
176-
result.append(bodyString).append(CRLF);
174+
result.append("Content-Length: ").append(bodyString.length()).append(CRLF).append(CRLF);
175+
result.append(bodyString);
177176
return result.toString();
178177
}
179178

0 commit comments

Comments
 (0)