From f677a026740a4752d2715dc5e93147d3c517de4b Mon Sep 17 00:00:00 2001 From: tonyskn Date: Fri, 6 May 2016 08:12:13 +0200 Subject: [PATCH] Fix wildcards in recorded headers Prevents generating invalid JS syntax when a recorded header contains wildcards (e.g 'accept: */*') --- src/tape.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tape.ejs b/src/tape.ejs index 69a2860..58ed46d 100644 --- a/src/tape.ejs +++ b/src/tape.ejs @@ -4,7 +4,7 @@ var path = require("path"); * <%- req.method %> <%- decodeURIComponent(req.path) %> * <% Object.keys(req._headers).forEach(function (key) { -%> - * <%- key %>: <%- req._headers[key] %> + * <%- key %>: <%- req._headers[key].replace('/*', '/ *').replace('*/', '* /') %> <% }); -%> */