Skip to content

Commit 9c9bf6f

Browse files
Philip Sampaiowojtekmach
Philip Sampaio
andauthored
Apply suggestions from code review
Co-authored-by: Wojtek Mach <[email protected]>
1 parent 904572a commit 9c9bf6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/req_ch.ex

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ defmodule ReqCH do
5252
5353
In case the server needs authentication, it's possible to use `Req` options for that.
5454
55-
iex> req = ReqCH.new(base_url: "https://example.org:8123", auth: {:basic, "user:pass"})
55+
iex> req = ReqCH.new(base_url: "http://example.org:8123", auth: {:basic, "user:pass"})
5656
iex> Req.post!(req, body: "SELECT number FROM system.numbers LIMIT 3").body
5757
"0\\n1\\n2\\n"
5858
@@ -195,6 +195,7 @@ defmodule ReqCH do
195195
defp normalise_format(_), do: nil
196196

197197
@valid_formats [:tsv, :csv, :json, :explorer]
198+
198199
defp format_error(format) do
199200
ArgumentError.exception(
200201
"the given format #{inspect(format)} is invalid. Expecting one of #{inspect(@valid_formats)} " <>

0 commit comments

Comments
 (0)