Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
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-workhorse
Commits
f18054fa
Commit
f18054fa
authored
Nov 16, 2015
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward store response to client.
parent
c75879e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lfs.go
lfs.go
+6
-6
No files found.
lfs.go
View file @
f18054fa
...
@@ -78,18 +78,18 @@ func handleStoreLfsObject(w http.ResponseWriter, r *gitRequest) {
...
@@ -78,18 +78,18 @@ func handleStoreLfsObject(w http.ResponseWriter, r *gitRequest) {
}
}
r
.
Header
.
Set
(
"X-GitLab-Lfs-Tmp"
,
filepath
.
Base
(
file
.
Name
()))
r
.
Header
.
Set
(
"X-GitLab-Lfs-Tmp"
,
filepath
.
Base
(
file
.
Name
()))
auth
Req
,
err
:=
r
.
u
.
newUpstreamRequest
(
r
.
Request
,
nil
,
""
)
store
Req
,
err
:=
r
.
u
.
newUpstreamRequest
(
r
.
Request
,
nil
,
""
)
if
err
!=
nil
{
if
err
!=
nil
{
fail500
(
w
,
"newUpstreamRequest
lfs
Callback"
,
err
)
fail500
(
w
,
"newUpstreamRequest
LfsStore
Callback"
,
err
)
return
return
}
}
authResponse
,
err
:=
r
.
u
.
httpClient
.
Do
(
auth
Req
)
storeResponse
,
err
:=
r
.
u
.
httpClient
.
Do
(
store
Req
)
if
err
!=
nil
{
if
err
!=
nil
{
fail500
(
w
,
"doRequest
lfs
Callback"
,
err
)
fail500
(
w
,
"doRequest
LfsStore
Callback"
,
err
)
return
return
}
}
defer
auth
Response
.
Body
.
Close
()
defer
store
Response
.
Body
.
Close
()
return
forwardResponseToClient
(
w
,
storeResponse
)
}
}
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