Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed to use HTTP method supported by Wordpress (POST instead of PUT).

  • Loading branch information...
commit 934ba7a6a467787289d43a662f39eacc622226c8 1 parent 9d03df4
@guilhermechapiewski guilhermechapiewski authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 wordpress/wordpress.post.xml
View
4 wordpress/wordpress.post.xml
@@ -375,7 +375,7 @@
myRequest.contentType("text/xml");
//myRequest.accept("text/xml");
myRequest.header("Connection", "close");
- results = myRequest.put('<?xml version="1.0" encoding="UTF-8"?>' + postData.toString()).response;
+ results = myRequest.post('<?xml version="1.0" encoding="UTF-8"?>' + postData.toString()).response;
//code = results.params.param.value.boolean.toString();
@@ -475,7 +475,7 @@
myRequest.contentType("text/xml");
//myRequest.accept("text/xml");
myRequest.header("Connection", "close");
- results = myRequest.put('<?xml version="1.0" encoding="UTF-8"?>' + postData.toString()).response;
+ results = myRequest.post('<?xml version="1.0" encoding="UTF-8"?>' + postData.toString()).response;
//code = results.params.param.value.boolean.toString();
Please sign in to comment.
Something went wrong with that request. Please try again.