mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
fix: #227 Fixing array syntax thanks to Lukas Eipert (https://github.com/leipert)
This commit is contained in:
parent
cea5a2bc5e
commit
aa6acb1d18
@ -31,7 +31,7 @@ function defaultRequest(
|
||||
{
|
||||
timeout: 30000,
|
||||
headers,
|
||||
searchParams: stringify(decamelizeKeys(query || {}), { arrayFormat: 'bracket' }),
|
||||
searchParams: stringify(decamelizeKeys(query), { arrayFormat: 'bracket' }),
|
||||
prefixUrl: service.url,
|
||||
json: typeof body === 'object' ? decamelizeKeys(body, skipAllCaps) : body,
|
||||
rejectUnauthorized: service.rejectUnauthorized,
|
||||
|
||||
@ -9,7 +9,7 @@ export async function get(
|
||||
): Promise<GetResponse> {
|
||||
const { showPagination, maxPages, sudo, ...query } = options;
|
||||
const response = await service.requester.get(service, endpoint, {
|
||||
query,
|
||||
query: query || {},
|
||||
sudo,
|
||||
});
|
||||
const { headers } = response;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user