Skip to content

Commit 224480b

Browse files
author
Derek Wasinger
committed
bug fix for using file path instead of content for files
1 parent deb8106 commit 224480b

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)