mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-05 14:37:41 +02:00
Fix API raw file content access for default branch (#2849)
This commit is contained in:
1 parent
76b8c3c68f
commit
57de1ff991
2 files changed
+8
-1
No files matched your search
@@ -25,4 +25,7 @@ func TestAPIReposRaw(t *testing.T) {
|
||||
req := NewRequestf(t, "GET", "/api/v1/repos/%s/repo1/raw/%s/README.md", user.Name, ref)
|
||||
session.MakeRequest(t, req, http.StatusOK)
|
||||
}
|
||||
// Test default branch
|
||||
req := NewRequestf(t, "GET", "/api/v1/repos/%s/repo1/raw/README.md", user.Name)
|
||||
session.MakeRequest(t, req, http.StatusOK)
|
||||
}
|
||||
Reference in new issue
Block a user