Skip to content

Commit 1341115

Browse files
committed
workaround supertest undefined requests
1 parent b30d430 commit 1341115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function time(start) {
2424
function defaultHandler(request, options, cb) {
2525
options = typeof options === 'string' ? urlParse(options) : options;
2626

27-
var url = options.href;
27+
var url = options.href || (options.protocol || 'http://') + options.host + options.path;
2828
var method = (options.method || 'GET').toUpperCase();
2929
var signature = method + ' ' + url;
3030
var start = new Date();

0 commit comments

Comments
 (0)