Skip to content

Commit

Permalink
Make procuctId to URL translation work again (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed May 26, 2024
1 parent c56d134 commit 804f3c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ val ubuntu1604 = mapOf(

val distributions = listOf(
debian,
// disable testing on Alpine for the time being due to https://github.com/Vampire/setup-wsl/issues/50
//alpine,
alpine,
kali,
openSuseLeap15_2,
ubuntu2204,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ sealed class Distribution(
requestUrl = "https://store.rg-adguard.net/api/GetFiles",
data = "type=ProductId&url=$productId",
additionalHeaders = recordOf(
"Content-Type" to "application/x-www-form-urlencoded"
"Content-Type" to "application/x-www-form-urlencoded",
"User-Agent" to "Setup WSL GitHub Action"
)
).await()

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

0 comments on commit 804f3c7

Please sign in to comment.