Skip to content

Commit b097592

Browse files
author
Pablo Lopez
committed
possible fix
1 parent f963a2c commit b097592

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/kinetic.erl

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -272,15 +272,17 @@ execute(Operation, Payload, Opts) ->
272272
#{"content-type" => "application/x-amz-json-1.1",
273273
"connection" => "keep-alive"},
274274
Headers =
275-
awsv4:headers(AwsCreds,
276-
#{service => "kinesis",
277-
target_api => Target,
278-
method => "POST",
279-
region => Region,
280-
host => Host,
281-
signed_headers => SignedHeaders,
282-
aws_date => Date},
283-
iolist_to_binary(Body)),
275+
[{Key, iolist_to_binary(Value)}
276+
|| {Key, Value}
277+
<- awsv4:headers(AwsCreds,
278+
#{service => "kinesis",
279+
target_api => Target,
280+
method => "POST",
281+
region => Region,
282+
host => Host,
283+
signed_headers => SignedHeaders,
284+
aws_date => Date},
285+
iolist_to_binary(Body))],
284286
case hackney:post(Url,
285287
Headers,
286288
Body,

0 commit comments

Comments
 (0)