mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-09 17:55:11 +00:00
test: fix content-length value type
All headers are strings, always. In this case it didn't matter atm, but let’s not provide confusing examples.
This commit is contained in:
parent
778b213945
commit
68fe0a9633
|
@ -110,7 +110,7 @@ defmodule Pleroma.SignatureTest do
|
||||||
|
|
||||||
headers = %{
|
headers = %{
|
||||||
host: "test.test",
|
host: "test.test",
|
||||||
"content-length": 100
|
"content-length": "100"
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_signature_equal(
|
assert_signature_equal(
|
||||||
|
@ -127,7 +127,7 @@ defmodule Pleroma.SignatureTest do
|
||||||
|
|
||||||
assert Signature.sign(
|
assert Signature.sign(
|
||||||
user,
|
user,
|
||||||
%{host: "test.test", "content-length": 100}
|
%{host: "test.test", "content-length": "100"}
|
||||||
) == {:error, []}
|
) == {:error, []}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue