Skip to content

Commit 9c7ddc4

Browse files
authored
Merge pull request #36 from dwasinge/master
File API Encoded Wrong Value
2 parents fdf469a + 224480b commit 9c7ddc4

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/redhat/labs/omp/models/gitlab

1 file changed

+1
-1
lines changed

src/main/java/com/redhat/labs/omp/models/gitlab/File.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void encodeFileAttributes() {
6262

6363
// encode contents
6464
if (null != content) {
65-
byte[] encodedContents = EncodingUtils.base64Encode(this.filePath.getBytes());
65+
byte[] encodedContents = EncodingUtils.base64Encode(this.content.getBytes());
6666
this.content = new String(encodedContents, StandardCharsets.UTF_8);
6767
}
6868

0 commit comments

Comments
 (0)