diff --git a/packages/spaces/lib/vpn-connections.js b/packages/spaces/lib/vpn-connections.js index 49af3eff08..9f32e5b06e 100644 --- a/packages/spaces/lib/vpn-connections.js +++ b/packages/spaces/lib/vpn-connections.js @@ -18,19 +18,13 @@ module.exports = function (heroku) { } function deleteVPNConnection (space, name) { - let lib = require('../lib/vpn')(heroku) - - if (!name) { - return lib.deleteVPN(space) - } - return request('DELETE', `/spaces/${space}/vpn-connections/${name}`) } function request (method, path, body) { return heroku.request({ method: method, - path: path, + path: encodeURI(path), body: body }) }