Commit a9534781 authored by PMExtra's avatar PMExtra Committed by Stan Hu

Fix export upload

parent 1f2ef687
...@@ -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