Open szmarczak opened 3 years ago
import got from 'got';
const {headers, body} = await got.get('pet/findByStatus', {
prefixUrl: 'https://petstore.swagger.io/v2',
timeout: {request: 400},
responseType: 'text',
searchParams: { status: 'available' },
retry: {limit: 0},
cache: new Map(),
http2: true,
headers: {
'x-trace-id': 'foo',
'user-agent': 'foo-bar/baz, bash'
}
});
console.log(body);
this should time out but it doesn't.
Headers contain
::status
instead of:status