TykMakeHttpRequest and URL params

Tried that. I agree it’s a bug.

@matiasb I’ve gotten the batch process to work…

function myVirtualTest(request, session, config) {
    // Set up a response object. Assume all will be successful.
    var response = {
        Body: ""
        Headers: { "Content-Type": "application/json", "Access-Control-Allow-Origin": "*" },
        Code: 200
    };
    
    var batch = {
        "requests": [
            {
                "method": "GET",
                "headers": {"Accept": "application/json"},
                "relative_url": "http://httpbin.org/get?foo=bar"
            }
        ]
    };

    var resps = TykBatchRequest(JSON.stringify(batch));
    var asJS = JSON.parse(resps)[0];  // heh. there's only one response.
    response.Body = asJS.body;
    return TykJsResponse(response, session.meta_data);
}