[Pkg-javascript-commits] [node-mocks-http] 76/296: default statusCode 302 on redirect

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 039b165f69c98f0cddecc35bd394b399ab9c2574
Author: Johnny Estilles <johnny.estilles at agentia.asia>
Date:   Sat Feb 28 21:22:55 2015 +0800

    default statusCode 302 on redirect
---
 lib/mockResponse.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/mockResponse.js b/lib/mockResponse.js
index 8b668ad..8ff36ce 100644
--- a/lib/mockResponse.js
+++ b/lib/mockResponse.js
@@ -335,6 +335,7 @@ function createResponse(options) {
 
             case 1:
 
+                mockResponse.statusCode = 302;
                 _redirectUrl = a;
                 break;
 

-- 
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