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
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ defmodule Pleroma.SignatureTest do
|
|||
|
||||
headers = %{
|
||||
host: "test.test",
|
||||
"content-length": 100
|
||||
"content-length": "100"
|
||||
}
|
||||
|
||||
assert_signature_equal(
|
||||
|
@ -127,7 +127,7 @@ defmodule Pleroma.SignatureTest do
|
|||
|
||||
assert Signature.sign(
|
||||
user,
|
||||
%{host: "test.test", "content-length": 100}
|
||||
%{host: "test.test", "content-length": "100"}
|
||||
) == {:error, []}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue