fix long polling in the local server case
fix long polling in the local server case

PHELiOX/droneshare,diydrones/droneshare,SecureCloud-biz/droneshare,diydrones/droneshare,PHELiOX/droneshare,diydrones/droneshare,dronekit/droneshare,SecureCloud-biz/droneshare,dronekit/droneshare,SecureCloud-biz/droneshare,dronekit/droneshare,PHELiOX/droneshare