From de6c16b7a3afc35b602c4705910710a89e1bdc89 Mon Sep 17 00:00:00 2001 From: Wojtek Mach Date: Tue, 22 Aug 2023 13:52:31 +0200 Subject: [PATCH] Don't hit httpbin in doctest --- lib/req.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/req.ex b/lib/req.ex index fad470c6..e32e7f57 100644 --- a/lib/req.ex +++ b/lib/req.ex @@ -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