Browse Source

minimalist paths for restful put/get

Jaromil 4 years ago
parent
commit
44f0a748ad
1 changed files with 2 additions and 2 deletions
  1. 2 2
      zuper

+ 2 - 2
zuper

@@ -392,7 +392,7 @@ EOF
392 392
             _fd=$REPLY
393 393
             #    func "tcp open on fd $fd"
394 394
             cat <<EOF >& $_fd
395
-PUT ${_path}/$_k HTTP/1.1
395
+PUT ${_path}${_k} HTTP/1.1
396 396
 User-Agent: Zuper/$zuper_version
397 397
 Host: ${_host}:${_port}
398 398
 Accept: */*
@@ -450,7 +450,7 @@ EOF
450 450
         # TODO: work out various parsers, this one works with consul.io
451 451
 
452 452
         cat <<EOF >& $_fd
453
-GET ${_path}/$_k HTTP/1.1
453
+GET ${_path}${_k} HTTP/1.1
454 454
 User-Agent: Zuper/$zuper_version
455 455
 Host: $_host:$_port
456 456
 Accept: */*