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
08c973f0
Commit
08c973f0
authored
Jan 03, 2017
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Catch _all_ multipart NextPart() errors
parent
0fe5a09e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
internal/upload/rewrite.go
internal/upload/rewrite.go
+6
-2
No files found.
internal/upload/rewrite.go
View file @
08c973f0
...
...
@@ -84,8 +84,11 @@ func rewriteFormFilesFromMultipart(r *http.Request, writer *multipart.Writer, te
for
{
p
,
err
:=
reader
.
NextPart
()
if
err
==
io
.
EOF
{
break
if
err
!=
nil
{
if
err
==
io
.
EOF
{
break
}
return
cleanup
,
err
}
name
:=
p
.
FormName
()
...
...
@@ -105,6 +108,7 @@ func rewriteFormFilesFromMultipart(r *http.Request, writer *multipart.Writer, te
return
cleanup
,
err
}
}
return
cleanup
,
nil
}
...
...
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