Skip to content

Commit 02366a1

Browse files
authored
Merge pull request #102 from standleypg-dev/UI-migrate
Fix 401 when adding radio
2 parents 803da2d + e9eb801 commit 02366a1

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)