- // For the test suite:
- // If httpbin_status URL parameter is set we call https://httpbin.org/#/Status_codes
- var tmp_params = new URLSearchParams(window.location.search);
- if (tmp_params && tmp_params.get('httpbin_status')) {
- api_url = 'https://httpbin.org/status/' + parseInt(tmp_params.get('httpbin_status'), 10);
- }