GET req with Accept JSON header now returns JSON File Info
Former-commit-id: 49499ad674d707034438bf85b749908ceb37fe12
This commit is contained in:
@@ -113,6 +113,8 @@ func (i Info) CanBeEdited() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// If the type isn't text (and is blob for example), it will check some
|
||||
// common types that are mistaken not to be text.
|
||||
extensions := [...]string{
|
||||
".md", ".markdown", ".mdown", ".mmark",
|
||||
".asciidoc", ".adoc", ".ad",
|
||||
|
||||
Reference in New Issue
Block a user