- return makeGetRequest({ url: `${protocol}//${host}`, path: pathname, expectedStatus, range })
+ const reqOptions = {
+ url: `${protocol}//${host}`,
+ path: pathname,
+ contentType: undefined,
+
+ ...pick(options, [ 'expectedStatus', 'range', 'token', 'query' ])
+ }
+
+ if (options.method === 'POST') {
+ return makePostBodyRequest(reqOptions)
+ }
+
+ return makeGetRequest(reqOptions)