I was trying to pass an empty argument and noticed that Cocaine would ignore it.
I'm uncertain if this is by design or not, but you should be able to do so. For example the following would not be valid without it (nor without the --data parameter for that matter):
curl -X POST --data '' 'http://localhost:9900'
The following patch addresses this issue (nil arguments are ignored as before).
Hi,
I was trying to pass an empty argument and noticed that Cocaine would ignore it.
I'm uncertain if this is by design or not, but you should be able to do so. For example the following would not be valid without it (nor without the
--data
parameter for that matter):curl -X POST --data '' 'http://localhost:9900'
The following patch addresses this issue (nil arguments are ignored as before).
Thanks, Daniel