Skip to content

Commit 7934c3f

Browse files
committed
Add built ForgeRequest which adds some headers
1 parent a399e96 commit 7934c3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/core/ForgeRequest.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ class ForgeRequest {
1515
this.request = _axios.default.create({
1616
baseUrl: 'https://forge.laravel.com/api/v1',
1717
headers: {
18-
'Authorization': `Bearer ${token}`
18+
'Authorization': `Bearer ${token}`,
19+
'Accept': 'application/json',
20+
'Content-Type': 'application/json'
1921
}
2022
});
2123
}

0 commit comments

Comments
 (0)