Skip to content

Commit

Permalink
JNG-5768 hotfix optional mapped input selection
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg committed Jun 12, 2024
1 parent 9201b63 commit ce39b3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export class JudoAxiosProvider implements AxiosProvider {
this.axios = data.axios;
this.basePathFactory = data.basePathFactory;
this.filePathFactory = data.filePathFactory;

// sending requests without body defaults to form content type
this.axios.defaults.headers.post['Content-Type'] = 'application/json';
}

getAxios(): AxiosInstance {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ suite('API Tests', () => {
let axiosMock: Partial<AxiosInstance> = {
post: axiosPostMock,
get: axiosGetMock,
defaults: {
headers: {
post: {},
} as any,
},
};
let judoAxiosProvider: JudoAxiosProvider;

Expand Down

0 comments on commit ce39b3a

Please sign in to comment.