- Updated test cases

This commit is contained in:
Ferdi Koomen 2019-12-24 10:48:58 +01:00
parent e873a1a762
commit bc1bf9aa42

View File

@ -207,8 +207,9 @@ import { Result } from './Result';
*/
export async function request(options: Readonly<RequestOptions>): Promise<Result> {
// Create the request URL
let url = \`\${OpenAPI.BASE}\${options.path}\`;
// Escape path (RFC3986) and create the request URL
let path = options.path.replace(/[:]/g, '_');
let url = \`\${OpenAPI.BASE}\${path}\`;
// Create request headers
const headers = new Headers({
@ -2316,8 +2317,9 @@ import { Result } from './Result';
*/
export async function request(options: Readonly<RequestOptions>): Promise<Result> {
// Create the request URL
let url = \`\${OpenAPI.BASE}\${options.path}\`;
// Escape path (RFC3986) and create the request URL
let path = options.path.replace(/[:]/g, '_');
let url = \`\${OpenAPI.BASE}\${path}\`;
// Create request headers
const headers = new Headers({