summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-11-04 19:26:38 +0200
committerGitHub <noreply@github.com>2017-11-04 19:26:38 +0200
commit57de1ff991a864c8adf669e3919247c555e7a75a (patch)
treea0eee0dd01ff934a491743fa9d748d29ceb5bfbd /integrations
parent76b8c3c68fb49a2ac779f30f1de105c73c691825 (diff)
downloadgitea-57de1ff991a864c8adf669e3919247c555e7a75a.tar.gz
gitea-57de1ff991a864c8adf669e3919247c555e7a75a.zip
Fix API raw file content access for default branch (#2849)
Diffstat (limited to 'integrations')
-rw-r--r--integrations/api_repo_raw_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/integrations/api_repo_raw_test.go b/integrations/api_repo_raw_test.go
index 045e812210..7ef930ff3f 100644
--- a/integrations/api_repo_raw_test.go
+++ b/integrations/api_repo_raw_test.go
@@ -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)
}