Commit f5f1c415 authored by Stan Hu's avatar Stan Hu

Merge branch 'fix-export-upload' into 'master'

Fix export upload

See merge request gitlab-org/gitlab!31453
parents cab0e8b6 a9534781
...@@ -42,6 +42,9 @@ curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab ...@@ -42,6 +42,9 @@ curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab
} }
``` ```
NOTE: **Note:**
The upload request will be sent with `Content-Type: application/gzip` header. Ensure that your pre-signed URL includes this as part of the signature.
## Export status ## Export status
Get the status of export. Get the status of export.
......
...@@ -52,7 +52,10 @@ module Gitlab ...@@ -52,7 +52,10 @@ module Gitlab
end end
def headers def headers
{ 'Content-Length' => export_size.to_s } {
'Content-Type' => 'application/gzip',
'Content-Length' => export_size.to_s
}
end end
def export_size def export_size
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment