minimalist paths for restful put/get

This commit is contained in:
Jaromil 2015-06-04 14:53:40 +02:00
parent 1e19f4bd59
commit 44f0a748ad
1 changed files with 2 additions and 2 deletions

4
zuper
View File

@ -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: */*