Skip to content

Commit

Permalink
Change HttpServerResponse.status to statusCode
Browse files Browse the repository at this point in the history
  • Loading branch information
richcollins committed Mar 30, 2012
1 parent 6a9a63a commit f5b3e1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/HttpServerResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ oden.HttpServerResponse = ideal.Observable.clone().newSlots({
type: "oden.HttpServerResponse",

contentType: "text/plain",
status: 200,
statusCode: 200,
body: "default oden.HttpServerResponse.body",

nodeResponse: null
}).setSlots({
send: function()
{
this.nodeResponse().writeHead(this.status(), { 'Content-Type': this.contentType() });
this.nodeResponse().writeHead(this.statusCode(), { 'Content-Type': this.contentType() });
this.nodeResponse().end(this.body());
return this;
}
Expand Down

0 comments on commit f5b3e1b

Please sign in to comment.