Skip to content

Commit c8d67a0

Browse files
Merge pull request #272 from microsoftgraph/abhsriva/content_type_fix
fixed NullpointerException in content type during post call
2 parents 3f18d7b + 7621b94 commit c8d67a0

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)