Skip to content

Commit

Permalink
Merge pull request #36 from asgoel/minor_template_fix
Browse files Browse the repository at this point in the history
[template] remove extra leading slash
  • Loading branch information
ewandennis committed Mar 8, 2017
2 parents c79c8d1 + 00f21d8 commit 8a6d29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/template.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ defmodule SparkPost.Template do
end
body = %{substitution_data: substitution_data}
:post
|> Endpoint.request("/templates/#{template.template_id}/preview#{qs}", body)
|> Endpoint.request("templates/#{template.template_id}/preview#{qs}", body)
|> Endpoint.marshal_response(SparkPost.Content.Inline)
|> SparkPost.Content.Inline.convert_from_field
end
Expand Down

0 comments on commit 8a6d29a

Please sign in to comment.