Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f5f1c415
Commit
f5f1c415
authored
May 10, 2020
by
Stan Hu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-export-upload' into 'master'
Fix export upload See merge request gitlab-org/gitlab!31453
parents
cab0e8b6
a9534781
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
doc/api/project_import_export.md
doc/api/project_import_export.md
+3
-0
lib/gitlab/import_export/after_export_strategies/web_upload_strategy.rb
...ort_export/after_export_strategies/web_upload_strategy.rb
+4
-1
No files found.
doc/api/project_import_export.md
View file @
f5f1c415
...
@@ -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.
...
...
lib/gitlab/import_export/after_export_strategies/web_upload_strategy.rb
View file @
f5f1c415
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment