Skip to content

Commit 64ca963

Browse files
RicardoTrindadeedgurgel
authored andcommitted
Fix typos in redirect handling documentation
Removed duplicate "returns a" wording and fixes get's to its correct form gets
1 parent 0d7d6c8 commit 64ca963

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/httpoison/base.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,10 @@ defmodule HTTPoison.Base do
311311
the method is set to `:get` or `:head` and the response's `status_code` is `301`, `302` or
312312
`307`.
313313
314-
If the method is set to `:post`, then the only `status_code` that get's automatically
314+
If the method is set to `:post`, then the only `status_code` that gets automatically
315315
followed is `303`.
316316
317-
If any other method or `status_code` is returned, then this function returns a
317+
If any other method or `status_code` is returned, then this function
318318
returns a `{:ok, %HTTPoison.MaybeRedirect{}}` containing the `redirect_url` for you to
319319
re-request with the method set to `:get`.
320320
@@ -396,7 +396,7 @@ defmodule HTTPoison.Base do
396396
the method is set to `:get` or `:head` and the response's `status_code` is `301`, `302` or
397397
`307`.
398398
399-
If the method is set to `:post`, then the only `status_code` that get's automatically
399+
If the method is set to `:post`, then the only `status_code` that gets automatically
400400
followed is `303`.
401401
402402
If any other method or `status_code` is returned, then this function returns a

0 commit comments

Comments
 (0)