Skip to content

Commit

Permalink
Don't hit httpbin in doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Aug 22, 2023
1 parent adca5a8 commit de6c16b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/req.ex
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ defmodule Req do
Similarly to headers, `:params` are merged too:
iex> req = Req.new(url: "https://httpbin.org/anything", params: [a: 1, b: 1])
iex> req = Req.update(req, params: [a: 2])
iex> Req.get!(req).body["args"]
%{"a" => "2", "b" => "1"}
req = Req.new(url: "https://httpbin.org/anything", params: [a: 1, b: 1])
req = Req.update(req, params: [a: 2])
Req.get!(req).body["args"]
#=> %{"a" => "2", "b" => "1"}
"""
@spec update(Req.Request.t(), options :: keyword()) :: Req.Request.t()
def update(%Req.Request{} = request, options) when is_list(options) do
Expand Down

0 comments on commit de6c16b

Please sign in to comment.