[Pkg-javascript-commits] [node-mocks-http] 79/296: setting mockResponse.statusCode default to 200

Thorsten Alteholz alteholz at moszumanska.debian.org
Mon Feb 8 18:13:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

alteholz pushed a commit to branch master
in repository node-mocks-http.

commit 7960ff519a94534b3adfc91d621bc5421ae799b7
Author: Johnny Estilles <johnny.estilles at agentia.asia>
Date:   Tue Mar 3 05:50:50 2015 +0800

    setting mockResponse.statusCode default to 200
---
 lib/mockResponse.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/mockResponse.js b/lib/mockResponse.js
index 8b668ad..bc9416f 100644
--- a/lib/mockResponse.js
+++ b/lib/mockResponse.js
@@ -50,7 +50,7 @@ function createResponse(options) {
 
     var mockResponse = {};
 
-    mockResponse.statusCode = -1;
+    mockResponse.statusCode = 200;
     mockResponse.cookies = {};
 
     mockResponse.cookie = function(name, value, options) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-mocks-http.git



More information about the Pkg-javascript-commits mailing list