Skip to content

Commit 804f3c7

Browse files
committed
Make procuctId to URL translation work again (#50)
1 parent c56d134 commit 804f3c7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/test.main.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ val ubuntu1604 = mapOf(
108108

109109
val distributions = listOf(
110110
debian,
111-
// disable testing on Alpine for the time being due to https://github.com/Vampire/setup-wsl/issues/50
112-
//alpine,
111+
alpine,
113112
kali,
114113
openSuseLeap15_2,
115114
ubuntu2204,

src/main/kotlin/net/kautler/github/action/setup_wsl/Distribution.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ sealed class Distribution(
6363
requestUrl = "https://store.rg-adguard.net/api/GetFiles",
6464
data = "type=ProductId&url=$productId",
6565
additionalHeaders = recordOf(
66-
"Content-Type" to "application/x-www-form-urlencoded"
66+
"Content-Type" to "application/x-www-form-urlencoded",
67+
"User-Agent" to "Setup WSL GitHub Action"
6768
)
6869
).await()
6970

@@ -73,7 +74,8 @@ sealed class Distribution(
7374
requestUrl = "https://echo.free.beeceptor.com/api/GetFiles",
7475
data = "type=ProductId&url=$productId",
7576
additionalHeaders = recordOf(
76-
"Content-Type" to "application/x-www-form-urlencoded"
77+
"Content-Type" to "application/x-www-form-urlencoded",
78+
"User-Agent" to "Setup WSL GitHub Action"
7779
)
7880
).await()
7981
if (echoResponse.message.statusCode == 200) {

0 commit comments

Comments
 (0)