From 44f0a748ad3093d5ce453e827440cb2f2ddd972f Mon Sep 17 00:00:00 2001 From: Jaromil Date: Thu, 4 Jun 2015 14:53:40 +0200 Subject: [PATCH] minimalist paths for restful put/get --- zuper | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zuper b/zuper index 8e9c84f..210a292 100644 --- a/zuper +++ b/zuper @@ -392,7 +392,7 @@ EOF _fd=$REPLY # func "tcp open on fd $fd" cat <& $_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 <& $_fd -GET ${_path}/$_k HTTP/1.1 +GET ${_path}${_k} HTTP/1.1 User-Agent: Zuper/$zuper_version Host: $_host:$_port Accept: */*