mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-09 17:44:29 +02:00
gps-track: replace http-content-type with http-header-field
This changed in 6.44beta75.
This commit is contained in:
parent
5365c6163c
commit
e9b4094dba
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ if ($Gps->"valid" = true) do={
|
||||||
:set ($Gps->"longitude") [ :pick ($Gps->"longitude") 0 [ :find ($Gps->"longitude") "\00" ] ];
|
:set ($Gps->"longitude") [ :pick ($Gps->"longitude") 0 [ :find ($Gps->"longitude") "\00" ] ];
|
||||||
:tool fetch mode=https check-certificate=yes-without-crl \
|
:tool fetch mode=https check-certificate=yes-without-crl \
|
||||||
$GpsTrackUrl keep-result=no \
|
$GpsTrackUrl keep-result=no \
|
||||||
http-method=post http-content-type="application/json" \
|
http-method=post http-header-field="Content-Type: application/json" \
|
||||||
http-data=("{" . \
|
http-data=("{" . \
|
||||||
"\"lat\":\"" . ($Gps->"latitude") . "\"," . \
|
"\"lat\":\"" . ($Gps->"latitude") . "\"," . \
|
||||||
"\"lon\":\"" . ($Gps->"longitude") . "\"," . \
|
"\"lon\":\"" . ($Gps->"longitude") . "\"," . \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue