Skip to content

Commit e9eb801

Browse files
committed
Fix 401 when adding radio
1 parent fb0aea1 commit e9eb801

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/UI/App/src/services/radio-source-service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ export async function addRadioSource(
5757
): Promise<RadioSource> {
5858
const response = await fetch(`${API_BASE_URL}/radio-sources/add`, {
5959
method: 'POST',
60-
headers: {
61-
'Content-Type': 'application/json',
62-
},
60+
headers: authHeader(),
6361
body: JSON.stringify({
6462
name: name,
6563
sourceUrl: sourceUrl,

0 commit comments

Comments
 (0)