GET req with Accept JSON header now returns JSON File Info

This commit is contained in:
Henrique Dias committed 2017-01-25 14:43:13 +00:00
1 parent bf29debeae
commit 49499ad674
2 files changed
+14 -6

No files matched your search

+2
View File
@@ -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",