We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aec3544 commit 7a6765aCopy full SHA for 7a6765a
1 file changed
frontend/src/api/rakshaRideApi.js
@@ -9,8 +9,8 @@ const AI = import.meta.env.VITE_AI_BASE_URL || '/ai';
9
async function request(url, options = {}) {
10
try {
11
const res = await fetch(url, {
12
- headers: { 'Content-Type': 'application/json', ...options.headers },
13
...options,
+ headers: { 'Content-Type': 'application/json', ...(options.headers || {}) },
14
});
15
16
const contentType = res.headers.get('content-type') || '';
0 commit comments