From 52fc91bf98dec54c19d2c1ceab8632353f22a9c5 Mon Sep 17 00:00:00 2001 From: Jonathan Lipps Date: Mon, 7 Apr 2014 09:40:53 -0700 Subject: [PATCH] these methods take complex body parameters, so make them posts --- lib/server/routing.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/server/routing.js b/lib/server/routing.js index 634900ff6..39b73c5ae 100644 --- a/lib/server/routing.js +++ b/lib/server/routing.js @@ -99,9 +99,9 @@ module.exports = function (appium) { rest.get('/wd/hub/session/:sessionId?/appium/device/current_activity', controller.getCurrentActivity); rest.post('/wd/hub/session/:sessionId?/appium/device/install_app', controller.installApp); rest.post('/wd/hub/session/:sessionId?/appium/device/remove_app', controller.removeApp); - rest.get('/wd/hub/session/:sessionId?/appium/device/app_installed', controller.isAppInstalled); + rest.post('/wd/hub/session/:sessionId?/appium/device/app_installed', controller.isAppInstalled); rest.post('/wd/hub/session/:sessionId?/appium/device/push_file', controller.pushFile); - rest.get('/wd/hub/session/:sessionId?/appium/device/pull_file', controller.pullFile); + rest.post('/wd/hub/session/:sessionId?/appium/device/pull_file', controller.pullFile); rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_airplane_mode', controller.toggleFlightMode); rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_wifi', controller.toggleWiFi); rest.post('/wd/hub/session/:sessionId?/appium/device/toggle_location_services', controller.toggleLocationServices);