Quantomic
049bca6d09
bandaid it instead
...
License: MIT
Signed-off-by: Mateja Milosevic <minima38123@gmail.com>
2017-07-14 20:09:55 +02:00
Quantomic
54bea781d9
Deletes the general 'too few arguments' check.
...
License: MIT
Signed-off-by: Mateja Milosevic <minima38123@gmail.com>
2017-07-09 22:24:52 +02:00
Quantomic
068b7f7f21
Corrects mistake.
...
License: MIT
Signed-off-by: Mateja Milosevic <minima38123@gmail.com>
2017-07-09 21:33:14 +02:00
Quantomic
c775a8737e
Fixes #4003
...
Includes a general sanity check to skip further checks if user provided fewer arguments than minimum required and a specific check for corrupted data passed as file.
License: MIT
Signed-off-by: Mateja Milosevic <minima38123@gmail.com>
2017-07-09 21:15:32 +02:00
Jeromy
ed551131f2
commands: fix panic when expected files field is nil
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-25 09:12:58 -07:00
rht
743f3edcbb
strings.Split -> path.SplitList
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-12 08:22:55 -08:00
rht
0123971118
Move api version check to header
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-12-28 03:48:50 -08:00
Ho-Sheng Hsiao
bf22aeec0a
Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
...
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
Matt Bell
7a579bbf79
commands: Moved files code into 'commands/files' subpackage
2015-01-13 22:50:53 -08:00
Matt Bell
ce49541f13
commands/http: Ignore mediatype validation (only required for file args)
2014-11-18 02:13:55 -08:00
Matt Bell
9333c504c1
commands/cli,http: Make sure required file arguments are provided
2014-11-18 02:13:55 -08:00
Matt Bell
f8be26810a
commands: Changed Request#Arguments to a []string
2014-11-18 02:13:55 -08:00
Matt Bell
53735263c2
commands/http: Parse multipart files into req.Files()
2014-11-18 02:13:53 -08:00
Matt Bell
d1c50972f5
commands: Check for option errors when constructing Requests
2014-11-16 18:01:06 -08:00
Matt Bell
28306a49c4
commands/cli,http: Properly preserve argument value count when checking argument validity
2014-11-14 03:20:04 -08:00
Matt Bell
f93b806d21
commands/http: s/lenRequired/numRequired/
2014-11-14 03:17:40 -08:00
Matt Bell
eebb43753b
commands: Added list of option definitions to Request, so Option can lookup values by all aliases
2014-11-14 03:17:37 -08:00
Matt Bell
cb72868ab4
commands: Fixed parser argument bug (TODO: better test coverage for command parsers)
2014-11-14 03:17:28 -08:00
Matt Bell
83cda2e699
commands/http: Fixed arg parse bug
2014-11-14 03:17:27 -08:00
Matt Bell
37f05a8bf6
commands: Ensure argument parsing maintains total argument count, so that argument validation will fail if there are too many
2014-11-14 03:17:27 -08:00
Matt Bell
116041c5ec
commands: Fixed argument value/definition mapping
2014-11-14 03:17:26 -08:00
Matt Bell
1b9b60331f
commands/http: Cleaned up argument handling in Parse
2014-11-04 02:04:51 -08:00
Matt Bell
446acdcdb5
commands/http: Ensure request URLs start with expected prefix
2014-11-04 02:04:50 -08:00
Matt Bell
75649f3d49
commands: Moved argument checking into a Command method, fail early when parsing commands
2014-11-04 02:04:49 -08:00
Matt Bell
405cfd9762
commands/http: Made parser/client handle variadic arguments
2014-11-04 02:04:49 -08:00
Matt Bell
40858b43ed
commands/http: Added stream argument handling to client and request parser
2014-11-04 02:04:48 -08:00
Matt Bell
3a8d60cc61
commands: Removed inpout stream from Request
2014-11-04 02:04:48 -08:00
Matt Bell
827f1dd0b0
commands: Changed Request arguments to a []interface{}
2014-11-04 02:04:48 -08:00
Matt Bell
83b2ba00e9
commands: Removed Command#Private field
2014-11-04 02:04:48 -08:00
Matt Bell
cfa56dde82
commands/http: Error if trying to run private command
2014-11-04 02:04:47 -08:00
Matt Bell
ea09268044
commands/http: 404 when trying to call root command
2014-11-04 02:04:47 -08:00
Matt Bell
1e0cabd4db
commands/http: Pass root command in as field instead of statically depending on core/commands
2014-11-04 02:04:47 -08:00
Brian Tiger Chow
b1bf60b877
fix(cmd/ipfs2, commands) imports
2014-11-04 02:04:46 -08:00
Matt Bell
81f29257a1
commands: Gave Requests a reference to the command they are being called on
2014-11-04 02:04:46 -08:00
Matt Bell
507192ef6e
commands/http: Use request body as command input stream
2014-11-04 02:04:45 -08:00
Matt Bell
753162529a
commands/http: Parse command args
2014-11-04 02:04:45 -08:00
Matt Bell
52bc8bd422
commands/http: Moved http request parsing into a Parse function
2014-11-04 02:04:45 -08:00