Content-Disposition not sent with project exports downloaded via API
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
You write in the API Export docs
that a curl like this
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" \
--remote-header-name \
--remote-name \
https://gitlab.example.com/api/v4/projects/5/export/download
would result in a downloaded file named like this
ls *export.tar.gz
2017-12-05_22-11-148_namespace_project_export.tar.gz
However this is not the case for the api_url
only for the web_url
.
It seems that the response from api_url
does not include the Content-Disposition: attachment;filename="2017-12-05_22-11-148_namespace_project_export.tar.gz"
like the response from the web_url
.
I'd like to kindly ask you to add the response header also to the api_url
request and maybe only fix the docs in the meantime.
Edited by 🤖 GitLab Bot 🤖