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

just fail instead of throwing if a relative url is provided #2995

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
just fail instead of throwing if a relative url is provided
  • Loading branch information
jgulotta committed Aug 1, 2024
commit ce3913e040dbff9ebafa782b45552bd448a0b9d3
2 changes: 1 addition & 1 deletion zio-http/shared/src/main/scala/zio/http/ZClient.scala
Original file line number Diff line number Diff line change
@@ -736,7 +736,7 @@ object ZClient extends ZClientPlatformSpecific {
} yield response
}
case Location.Relative =>
ZIO.fail(throw new IllegalArgumentException("Absolute URL is required"))
ZIO.fail(new IllegalArgumentException("Absolute URL is required"))
}
}

Loading