1
0
Fork 0
forked from forgejo/forgejo

Fix API raw file content access for default branch (#2849)

This commit is contained in:
Lauris BH 2017-11-04 19:26:38 +02:00 committed by GitHub
parent 76b8c3c68f
commit 57de1ff991
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -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)
}