Closed tiwariarvin closed 9 years ago
@tiwariarvin great spot and thanks for the PR. Again could you add a simple test to prove functionality.
I'll sort the test out so thanks for the PR!
This fix is now in the new release (v1.11.3). Here is the test I added for it https://github.com/jonsamwell/angular-http-batcher/blob/master/tests/services/adapters/httpAdapter.spec.js#L123
Thanks Jonsamwell, Sorry that could not include test as was occupied with work for a product we are wrapping up.
Cheers Arvin
Use encodeURI to process query strings with spaces and other such characters. batchBody.push(request.method + ' ' + encodeURI(urlInfo.relativeUrl) + ' ' + constants.httpVersion);