Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
26ebfa20
Commit
26ebfa20
authored
Feb 18, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bug/blob_escaped_json' into 'master'
Fixed bug with json files content being escaped in api Fixes #1035
parents
87a449f2
3c742dad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lib/api/api.rb
lib/api/api.rb
+2
-0
lib/api/repositories.rb
lib/api/repositories.rb
+1
-3
No files found.
lib/api/api.rb
View file @
26ebfa20
...
...
@@ -22,6 +22,8 @@ module API
end
format
:json
content_type
:txt
,
"text/plain"
helpers
APIHelpers
mount
Groups
...
...
lib/api/repositories.rb
View file @
26ebfa20
...
...
@@ -167,9 +167,7 @@ module API
blob
=
Gitlab
::
Git
::
Blob
.
find
(
repo
,
commit
.
id
,
params
[
:filepath
])
not_found!
"File"
unless
blob
env
[
'api.format'
]
=
:txt
content_type
blob
.
mime_type
content_type
'text/plain'
present
blob
.
data
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment