Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port updates from basic-webserver & basic-ssg upgrades, fix PR comments #290

Merged
merged 3 commits into from
Dec 19, 2024

Conversation

lukewilliamboswell
Copy link
Collaborator

No description provided.

@lukewilliamboswell lukewilliamboswell marked this pull request as ready for review December 18, 2024 05:23
@lukewilliamboswell lukewilliamboswell changed the title Port updates from basic-webserver & basic-sig upgrades, fix comments Port updates from basic-webserver & basic-ssg upgrades, fix PR comments Dec 18, 2024
smores56
smores56 previously approved these changes Dec 18, 2024
query_params : Url -> Dict Str Str
query_params = \url ->
query url
|> Str.splitOn "&"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to handle trailing & by removing empty strings? Not that important, I expect there will be some Url lib someday that properly handles this stuff.

@@ -85,3 +86,11 @@ get! = \uri, fmt ->

Decode.fromBytes response.body fmt
|> Result.mapErr \_ -> HttpDecodingFailed

get_utf8! : Str => Result Str [BadBody Str]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't seem like we have this error union anymore for errors, so we should maybe provide an error tag because it's lower cardinality? I'd vote [InvalidUtf8Body] instead.

@bhansconnect
Copy link
Collaborator

Apparently we need to update gcc on the ci machines

@lukewilliamboswell lukewilliamboswell merged commit 390c833 into main Dec 19, 2024
10 checks passed
@lukewilliamboswell lukewilliamboswell deleted the refactor branch December 19, 2024 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants