Post test data accepts file as param now, image comparing fix

This commit is contained in:
MrFry 2020-03-23 16:08:46 +01:00
parent 2efe901f83
commit fa87d6a071
3 changed files with 6 additions and 3 deletions

View file

@ -2,14 +2,16 @@
url=$(head -n 1 ../serverAddress) url=$(head -n 1 ../serverAddress)
echo "Server url: $url" echo "Server url: $url"
if [ "$#" -ne 1 ]; then if [ "$#" -ne 1 ]; then
echo "1 param required: json to send to localhost, got $#" echo "1 param required: json to send to localhost, got $#"
else else
data=$(tr -d '\n' < "$1" | awk '$1=$1')
echo sending echo sending
echo "SENT DATA:" echo "SENT DATA:"
../bin/hr.sh ../bin/hr.sh
echo "$1" echo "$data"
../bin/hr.sh ../bin/hr.sh
curl -X POST --data "datatoadd=$1" "$url/isAdding" curl -X POST --data "datatoadd=$data" "$url/isAdding"
fi fi

View file

@ -88,6 +88,7 @@ Load()
// -------------------------------------------------------------- // --------------------------------------------------------------
app.get('/', function (req, res) { app.get('/', function (req, res) {
logger.LogReq(req)
res.redirect('https://www.youtube.com/watch?v=ieqGJgqiXFk') res.redirect('https://www.youtube.com/watch?v=ieqGJgqiXFk')
}) })

@ -1 +1 @@
Subproject commit 302741ed69681b414a62def068f2ef69196e2c30 Subproject commit b22e101477ef2ef87c844b91bd3c29863320bc29