[Pkg-javascript-commits] [node-mocks-http] 255/296: Fixed issue 70
Thorsten Alteholz
alteholz at moszumanska.debian.org
Mon Feb 8 18:13:42 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 2de41e71040caed7aa0918fb84cf7a8188b16f11
Author: Aaron J. Lang <aaronjameslang at googlemail.com>
Date: Tue Aug 4 17:41:51 2015 +0100
Fixed issue 70
---
lib/mockRequest.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/mockRequest.js b/lib/mockRequest.js
index 8a93677..e008d95 100644
--- a/lib/mockRequest.js
+++ b/lib/mockRequest.js
@@ -50,7 +50,7 @@ function createRequest(options) {
var mockRequest = {};
mockRequest.method = (options.method) ? options.method : 'GET';
- mockRequest.url = (options.url) ? options.url : '';
+ mockRequest.url = options.url || options.path || '';
mockRequest.originalUrl = options.originalUrl || mockRequest.url;
mockRequest.path = (options.url) ? url.parse(options.url).pathname : '';
mockRequest.params = (options.params) ? options.params : {};
--
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