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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-workhorse
Commits
a085cecd
Commit
a085cecd
authored
Dec 08, 2015
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix errors
parent
9bd16e47
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
git-http.go
git-http.go
+1
-1
uploads.go
uploads.go
+1
-1
xsendfile.go
xsendfile.go
+1
-1
No files found.
git-http.go
View file @
a085cecd
...
@@ -111,7 +111,7 @@ func handlePostRPC(w http.ResponseWriter, r *gitRequest) {
...
@@ -111,7 +111,7 @@ func handlePostRPC(w http.ResponseWriter, r *gitRequest) {
return
return
}
}
if
err
:=
cmd
.
Wait
();
err
!=
nil
{
if
err
:=
cmd
.
Wait
();
err
!=
nil
{
log
.
Printf
(
"handlePostRPC wait for %v: %v"
,
err
)
log
.
Printf
(
"handlePostRPC wait for %v: %v"
,
cmd
.
Args
,
err
)
return
return
}
}
}
}
...
...
uploads.go
View file @
a085cecd
...
@@ -126,7 +126,7 @@ func handleFileUploads(w http.ResponseWriter, r *gitRequest) {
...
@@ -126,7 +126,7 @@ func handleFileUploads(w http.ResponseWriter, r *gitRequest) {
// Forward request to backend
// Forward request to backend
upstreamResponse
,
err
:=
r
.
u
.
httpClient
.
Do
(
upstreamRequest
)
upstreamResponse
,
err
:=
r
.
u
.
httpClient
.
Do
(
upstreamRequest
)
if
err
!=
nil
{
if
err
!=
nil
{
fail500
(
w
,
fmt
.
Errorf
(
"handleFileUploads: do request %v"
,
upstreamRequest
.
URL
.
Path
,
err
))
fail500
(
w
,
fmt
.
Errorf
(
"handleFileUploads: do request %v
: %v
"
,
upstreamRequest
.
URL
.
Path
,
err
))
return
return
}
}
defer
upstreamResponse
.
Body
.
Close
()
defer
upstreamResponse
.
Body
.
Close
()
...
...
xsendfile.go
View file @
a085cecd
...
@@ -25,7 +25,7 @@ func handleSendFile(w http.ResponseWriter, r *gitRequest) {
...
@@ -25,7 +25,7 @@ func handleSendFile(w http.ResponseWriter, r *gitRequest) {
upResponse
,
err
:=
r
.
u
.
httpClient
.
Do
(
upRequest
)
upResponse
,
err
:=
r
.
u
.
httpClient
.
Do
(
upRequest
)
r
.
Body
.
Close
()
r
.
Body
.
Close
()
if
err
!=
nil
{
if
err
!=
nil
{
fail500
(
w
,
fmt
.
Errorf
(
"handleSendfile:do upstream request: %v"
,
err
))
fail500
(
w
,
fmt
.
Errorf
(
"handleSendfile:
do upstream request: %v"
,
err
))
return
return
}
}
...
...
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