Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
5cb39235
Commit
5cb39235
authored
Dec 01, 2014
by
Matt Bell
Committed by
Brian Tiger Chow
Dec 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands/http: Fixed bug with client arg querystring
parent
4c7a6944
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
commands/http/client.go
commands/http/client.go
+12
-6
No files found.
commands/http/client.go
View file @
5cb39235
...
@@ -107,15 +107,21 @@ func getQuery(req cmds.Request) (string, error) {
...
@@ -107,15 +107,21 @@ func getQuery(req cmds.Request) (string, error) {
args
:=
req
.
Arguments
()
args
:=
req
.
Arguments
()
argDefs
:=
req
.
Command
()
.
Arguments
argDefs
:=
req
.
Command
()
.
Arguments
var
argDef
cmds
.
Argument
for
i
,
arg
:=
range
args
{
argDefIndex
:=
0
if
i
<
len
(
argDefs
)
{
argDef
=
argDefs
[
i
]
for
_
,
arg
:=
range
args
{
argDef
:=
argDefs
[
argDefIndex
]
// skip ArgFiles
for
argDef
.
Type
==
cmds
.
ArgFile
{
argDefIndex
++
argDef
=
argDefs
[
argDefIndex
]
}
}
if
argDef
.
Type
==
cmds
.
ArgString
{
query
.
Add
(
"arg"
,
arg
)
query
.
Add
(
"arg"
,
arg
)
if
len
(
argDefs
)
>
argDefIndex
+
1
{
argDefIndex
++
}
}
}
}
...
...
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