Skip to content

Commit cd4c57c

Browse files
committed
Updates version to 1.0.2.
See HISTORY.md for details.
1 parent 152ebef commit cd4c57c

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
## 1.0.2 / 2012-07-29
3+
4+
* Server responds with a 404 if it does not handle the method.
5+
* Client returns an error if the server returns a 404.
6+
27
## 1.0.1 / 2012-04-29
38

49
* Fixes content-length header value when sending multi-byte characters.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ var xmlrpc = require('xmlrpc')
3131

3232
// Creates an XML-RPC server to listen to XML-RPC method calls
3333
var server = xmlrpc.createServer({ host: 'localhost', port: 9090 })
34-
//Handle methods not found
34+
// Handle methods not found
3535
server.on('NotFound', function(method, params) {
36-
console.log('Method '+method+' does not exist');
36+
console.log('Method ' + method + ' does not exist');
3737
})
3838
// Handle method calls by listening for events with the method call name
3939
server.on('anAction', function (err, params, callback) {

lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Client.prototype.methodCall = function methodCall(method, params, callback) {
8080
options.headers['Content-Length'] = Buffer.byteLength(xml, 'utf8')
8181

8282
var request = transport.request(options, function(response) {
83-
if(response.statusCode == 404) {
83+
if (response.statusCode == 404) {
8484
callback(new Error('Not Found'));
8585
}
8686
else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ "name" : "xmlrpc"
22
, "description" : "A pure JavaScript XML-RPC client and server."
33
, "keywords" : [ "xml-rpc", "xmlrpc", "xml", "rpc" ]
4-
, "version" : "1.0.1"
4+
, "version" : "1.0.2"
55
, "preferGlobal" : false
66
, "homepage" : "https://github.com/baalexander/node-xmlrpc"
77
, "author" : "Brandon Alexander <[email protected]> (https://github.com/baalexander)"

0 commit comments

Comments
 (0)