Explorar el Código

Fix RequestClient#delete method.

Renée Kooi hace 7 años
padre
commit
f5b70ce7a2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/server/RequestClient.js

+ 1 - 1
src/server/RequestClient.js

@@ -61,7 +61,7 @@ module.exports = class RequestClient {
 
   delete (path, data) {
     return fetch(`${this.hostname}/${path}`, {
-      method: 'post',
+      method: 'delete',
       credentials: 'include',
       headers: {
         'Accept': 'application/json',