Skip to content

Commit 7621b94

Browse files
committed
fixed NullpointerException in content type during post call
1 parent 8d4ec6c commit 7621b94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/microsoft/graph/http/CoreHttpProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ public Request authenticateRequest(Request request) {
288288
// This ensures that the Content-Length header is properly set
289289
if (request.getHttpMethod() == HttpMethod.POST) {
290290
bytesToWrite = new byte[0];
291+
contenttype = Constants.BINARY_CONTENT_TYPE;
291292
}
292293
else {
293294
bytesToWrite = null;

0 commit comments

Comments
 (0)