mirror of https://github.com/dyne/zuper.git
minimalist paths for restful put/get
This commit is contained in:
parent
1e19f4bd59
commit
44f0a748ad
4
zuper
4
zuper
|
|
@ -392,7 +392,7 @@ EOF
|
|||
_fd=$REPLY
|
||||
# func "tcp open on fd $fd"
|
||||
cat <<EOF >& $_fd
|
||||
PUT ${_path}/$_k HTTP/1.1
|
||||
PUT ${_path}${_k} HTTP/1.1
|
||||
User-Agent: Zuper/$zuper_version
|
||||
Host: ${_host}:${_port}
|
||||
Accept: */*
|
||||
|
|
@ -450,7 +450,7 @@ EOF
|
|||
# TODO: work out various parsers, this one works with consul.io
|
||||
|
||||
cat <<EOF >& $_fd
|
||||
GET ${_path}/$_k HTTP/1.1
|
||||
GET ${_path}${_k} HTTP/1.1
|
||||
User-Agent: Zuper/$zuper_version
|
||||
Host: $_host:$_port
|
||||
Accept: */*
|
||||
|
|
|
|||
Loading…
Reference in New Issue