diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-27 17:14:47 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-27 17:14:47 +0300 |
commit | 9351a295c1ac84e2e67559a9140cb921445c8951 (patch) | |
tree | e0657e5672b7eb971a4e8fad54b11a990626b677 /lib/api | |
parent | e26d149cd8a4eedaf56810de01e085c5661f1c02 (diff) | |
download | gitlab-ce-9351a295c1ac84e2e67559a9140cb921445c8951.tar.gz |
Up grape version. Fix issue with raw content being escaped
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/repositories.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/repositories.rb b/lib/api/repositories.rb index 964b9eb38ac..2ed5ea20891 100644 --- a/lib/api/repositories.rb +++ b/lib/api/repositories.rb @@ -124,6 +124,8 @@ module API blob = Gitlab::Git::Blob.new(repo, commit.id, ref, params[:filepath]) not_found! "File" unless blob.exists? + env['api.format'] = :txt + content_type blob.mime_type present blob.data end |