Permalink
Browse files

Updates version to 1.0.2.

See HISTORY.md for details.
  • Loading branch information...
baalexander committed Jul 30, 2012
1 parent 152ebef commit cd4c57cd070ebd0d685a9c53e305095dc42307c5
Showing with 9 additions and 4 deletions.
  1. +5 −0 HISTORY.md
  2. +2 −2 README.md
  3. +1 −1 lib/client.js
  4. +1 −1 package.json
View
@@ -1,4 +1,9 @@
+## 1.0.2 / 2012-07-29
+
+ * Server responds with a 404 if it does not handle the method.
+ * Client returns an error if the server returns a 404.
+
## 1.0.1 / 2012-04-29
* Fixes content-length header value when sending multi-byte characters.
View
@@ -31,9 +31,9 @@ var xmlrpc = require('xmlrpc')
// Creates an XML-RPC server to listen to XML-RPC method calls
var server = xmlrpc.createServer({ host: 'localhost', port: 9090 })
-//Handle methods not found
+// Handle methods not found
server.on('NotFound', function(method, params) {
- console.log('Method '+method+' does not exist');
+ console.log('Method ' + method + ' does not exist');
})
// Handle method calls by listening for events with the method call name
server.on('anAction', function (err, params, callback) {
View
@@ -80,7 +80,7 @@ Client.prototype.methodCall = function methodCall(method, params, callback) {
options.headers['Content-Length'] = Buffer.byteLength(xml, 'utf8')
var request = transport.request(options, function(response) {
- if(response.statusCode == 404) {
+ if (response.statusCode == 404) {
callback(new Error('Not Found'));
}
else {
View
@@ -1,7 +1,7 @@
{ "name" : "xmlrpc"
, "description" : "A pure JavaScript XML-RPC client and server."
, "keywords" : [ "xml-rpc", "xmlrpc", "xml", "rpc" ]
-, "version" : "1.0.1"
+, "version" : "1.0.2"
, "preferGlobal" : false
, "homepage" : "https://github.com/baalexander/node-xmlrpc"
, "author" : "Brandon Alexander <baalexander@gmail.com> (https://github.com/baalexander)"

0 comments on commit cd4c57c

Please sign in to comment.