BinaryONe commited on
Commit
a6b025b
·
1 Parent(s): 7c5cf76
Files changed (1) hide show
  1. WebSSH/templates/index.html +2 -2
WebSSH/templates/index.html CHANGED
@@ -64,7 +64,7 @@
64
  function run_commands() {
65
  const command = document.getElementById('command').value;
66
  fetch('/commands', {
67
- method: 'GET',
68
  headers: {
69
  'Content-Type': 'application/json'
70
  },
@@ -80,7 +80,7 @@
80
  var username = document.getElementById('username').value;
81
  var password = document.getElementById('password').value;
82
  fetch('/get_key', {
83
- method: 'GET',
84
  headers: {
85
  'Content-Type': 'application/json'
86
  },
 
64
  function run_commands() {
65
  const command = document.getElementById('command').value;
66
  fetch('/commands', {
67
+ method: 'POST',
68
  headers: {
69
  'Content-Type': 'application/json'
70
  },
 
80
  var username = document.getElementById('username').value;
81
  var password = document.getElementById('password').value;
82
  fetch('/get_key', {
83
+ method: 'POST',
84
  headers: {
85
  'Content-Type': 'application/json'
86
  },