GET raw with PRIVATE-TOKEN in header
Created by: VertigoRay
Components:
GitLab 7.3.2
GitLab Shell 2.0.1
GitLab API v3
Ruby 2.1.2p95
Rails 4.1.1
Issue
Per the help docs, this works in the API:
GET http://example.com/api/v3/projects?private_token=QVy1PB7sTxfy4pqfZM1U
And this curl method works:
curl --header "PRIVATE-TOKEN: QVy1PB7sTxfy4pqfZM1U" --header "SUDO: username" "http://example.com/api/v3/projects"
I've tested this and this works:
GET http://example.com/group/project/raw/master/foo.py?private_token=QVy1PB7sTxfy4pqfZM1U
This does NOT work:
curl --header "PRIVATE-TOKEN: QVy1PB7sTxfy4pqfZM1U" --header "SUDO: username" "http://example.com/group/project/raw/master/foo.py"
I would like it to ...