Skip to content

Commit

Permalink
feat: add a user-agent when sending request to AoC to be in line with…
Browse files Browse the repository at this point in the history
… official AoC recommendations
  • Loading branch information
renaudlenne committed Dec 4, 2024
1 parent 1df1840 commit 94b0d72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gladvent/internal/cmd/new.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ fn download_input(ctx: Context) -> Result(String, Err) {
)
|> request.set_scheme(http.Https)
|> request.set_cookie("session", cookie)
|> request.set_header("user-agent", "github.com/TanklesXL/gladvent")
|> httpc.send()
|> result.map_error(HttpError(_)),
)
Expand Down

0 comments on commit 94b0d72

Please sign in to comment.