Skip to content

Commit

Permalink
fix: force type of header
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Buceta <[email protected]>
  • Loading branch information
frbuceta committed Nov 14, 2021
1 parent a9604c4 commit afefef1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
9 changes: 9 additions & 0 deletions extensions/authentication-jwt/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/http-caching-proxy/src/http-caching-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

import axios, {AxiosInstance, Method} from 'axios';
import axios, {AxiosInstance, AxiosRequestHeaders, Method} from 'axios';
import debugFactory from 'debug';
import {once} from 'events';
import {
Expand Down Expand Up @@ -200,7 +200,7 @@ export class HttpCachingProxy {
const backendResponse = await this._axios({
method: clientRequest.method as Method,
url: clientRequest.url!,
headers: clientRequest.headers,
headers: clientRequest.headers as AxiosRequestHeaders,
data: clientRequest,
// Set the response type to `arraybuffer` to force the `data` to be a
// Buffer to allow ease of caching
Expand Down
6 changes: 0 additions & 6 deletions packages/model-api-builder/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit afefef1

Please sign in to comment.