Skip to content

Commit

Permalink
fix: ask gaxios for text and not json (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Jan 15, 2019
1 parent 73641ec commit 39be153
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ async function metadataAccessor<T>(
url: `${BASE_URL}/${type}${property}`,
headers: Object.assign({}, HEADERS, options.headers),
retryConfig: {noResponseRetries},
params: options.params
params: options.params,
responseType: 'text'
});
// NOTE: node.js converts all incoming headers to lower case.
if (res.headers[HEADER_NAME.toLowerCase()] !== HEADER_VALUE) {
Expand Down

0 comments on commit 39be153

Please sign in to comment.