projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b8aeac
)
Fix credo warning
author
Egor Kislitsyn
<egor@kislitsyn.com>
Wed, 26 Jun 2019 12:19:07 +0000
(19:19 +0700)
committer
Egor Kislitsyn
<egor@kislitsyn.com>
Wed, 26 Jun 2019 12:19:07 +0000
(19:19 +0700)
lib/pleroma/plugs/idempotency_plug.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/plugs/idempotency_plug.ex
b/lib/pleroma/plugs/idempotency_plug.ex
index 442573d603617911cb9af522bbcada910e699b4e..7c06be9eac1eb56c7cbd60f66565d61a9aae6b67 100644
(file)
--- a/
lib/pleroma/plugs/idempotency_plug.ex
+++ b/
lib/pleroma/plugs/idempotency_plug.ex
@@
-11,7
+11,9
@@
defmodule Pleroma.Plugs.IdempotencyPlug do
@impl true
def init(opts), do: opts
- # Sending idempotency keys in `GET` and `DELETE` requests has no effect and should be avoided, as these requests are idempotent by definition.
+ # Sending idempotency keys in `GET` and `DELETE` requests has no effect
+ # and should be avoided, as these requests are idempotent by definition.
+
@impl true
def call(%{method: method} = conn, _) when method in ["POST", "PUT", "PATCH"] do
case get_req_header(conn, "idempotency-key") do