Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-08-09 08:35:40 +0300
committerStan Hu <stanhu@gmail.com>2015-08-10 01:23:22 +0300
commitc5648de230905afd35a1b044a74b6d687eaed994 (patch)
tree46312f7d97e60a230bec3210efbc9dcc3dfa749e /lib/api
parentb833f208f3a31a6ac964dac422141249f2278fd9 (diff)
Fix corrupted binary files when using API files endpoint
Add CHANGELOG for gitlab_git 7.2.9 updates Closes #2219
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/files.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/files.rb b/lib/api/files.rb
index c7b30cf2f07..308c84dd135 100644
--- a/lib/api/files.rb
+++ b/lib/api/files.rb
@@ -67,7 +67,7 @@ module API
file_path: blob.path,
size: blob.size,
encoding: "base64",
- content: Base64.encode64(blob.data),
+ content: Base64.strict_encode64(blob.data),
ref: ref,
blob_id: blob.id,
commit_id: commit.id,