Do not MIME encode Base64 content for sending

Fixes #638
This commit is contained in:
Liam Newman
2019-12-20 19:47:00 -08:00
parent a115f34766
commit 37a2018fe3
28 changed files with 2234 additions and 3 deletions

View File

@@ -306,7 +306,7 @@ public class GHContent implements Refreshable {
*/
public GHContentUpdateResponse update(byte[] newContentBytes, String commitMessage, String branch)
throws IOException {
String encodedContent = Base64.getMimeEncoder().encodeToString(newContentBytes);
String encodedContent = Base64.getEncoder().encodeToString(newContentBytes);
Requester requester = root.createRequest()
.method("POST")