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
a9534781
Commit
a9534781
authored
May 10, 2020
by
PMExtra
Committed by
Stan Hu
May 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix export upload
parent
1f2ef687
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 @
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.
...
...
lib/gitlab/import_export/after_export_strategies/web_upload_strategy.rb
View file @
a9534781
...
@@ -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