Skip to content

Commit

Permalink
Merge pull request #8 from davide-scola/0.x-force_user_agent
Browse files Browse the repository at this point in the history
[0.x] Force user agent
  • Loading branch information
davide-scola authored Dec 5, 2017
2 parents dc44d6d + 4b6728e commit daffddc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ dnl implied. See the License for the specific language governing permissions
dnl and limitations under the License.

AC_PREREQ(2.69)
AC_INIT([grenache-cli], [0.3.0], [[email protected]])
AC_INIT([grenache-cli], [0.3.1], [[email protected]])

AC_SUBST([VERSION], [0.3.0])
AC_SUBST([VERSION], [0.3.1])
AC_SUBST([SB], [`$srcdir/shtool echo -n -e %B`])
AC_SUBST([EB], [`$srcdir/shtool echo -n -e %b`])

Expand Down
2 changes: 1 addition & 1 deletion src/grenache-get.in
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ do
exit 1
}

JSON="$(@CURL@ -qK "${HOME}/.grenache-cli/grenache-cli.conf" "http${TLS:+s}://${HOSTNAME}:${PORT}/get" < <( \
JSON="$(@CURL@ -qK "${HOME}/.grenache-cli/grenache-cli.conf" -A '@PACKAGE@/@PACKAGE_VERSION@' "http${TLS:+s}://${HOSTNAME}:${PORT}/get" < <( \
@JQ@ -cnM \
--arg 'data' "${hash}" \
--arg 'rid' "$(@UUIDGEN@)" \
Expand Down
1 change: 0 additions & 1 deletion src/grenache-keygen.in
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ exec {debug}>>/dev/null
#
silent
compress
user-agent "@PACKAGE@/@PACKAGE_VERSION@"
#
# Request
Expand Down
2 changes: 1 addition & 1 deletion src/grenache-put.in
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ ARGUMENTS=(
}

HASH="$(@JQ@ -cMr '.' < <(
@CURL@ -qK "${HOME}/.grenache-cli/grenache-cli.conf" "http${TLS:+s}://${HOSTNAME}:${PORT}/put" < <( \
@CURL@ -qK "${HOME}/.grenache-cli/grenache-cli.conf" -A '@PACKAGE@/@PACKAGE_VERSION@' "http${TLS:+s}://${HOSTNAME}:${PORT}/put" < <( \
@JQ@ -cnM \
"${ARGUMENTS[@]}" \
--arg 'rid' "$(@UUIDGEN@)" \
Expand Down

0 comments on commit daffddc

Please sign in to comment.