mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
gps-track: replace http-content-type with http-header-field
This changed in 6.44beta75.
This commit is contained in:
@@ -15,7 +15,7 @@ if ($Gps->"valid" = true) do={
|
||||
:set ($Gps->"longitude") [ :pick ($Gps->"longitude") 0 [ :find ($Gps->"longitude") "\00" ] ];
|
||||
:tool fetch mode=https check-certificate=yes-without-crl \
|
||||
$GpsTrackUrl keep-result=no \
|
||||
http-method=post http-content-type="application/json" \
|
||||
http-method=post http-header-field="Content-Type: application/json" \
|
||||
http-data=("{" . \
|
||||
"\"lat\":\"" . ($Gps->"latitude") . "\"," . \
|
||||
"\"lon\":\"" . ($Gps->"longitude") . "\"," . \
|
||||
|
||||
Reference in New Issue
Block a user