Skip Sobelow XSS.ContentType warning for asset controller
This commit is contained in:
@@ -73,6 +73,9 @@ defmodule MusicLibraryWeb.AssetController do
|
|||||||
|> send_resp(304, "")
|
|> send_resp(304, "")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Format is always resolved to either "image/webp" or "image/jpeg" in
|
||||||
|
# pick_format/1, so it's safe.
|
||||||
|
# sobelow_skip ["XSS.ContentType"]
|
||||||
defp respond_with_cache(conn, data, format, etag) do
|
defp respond_with_cache(conn, data, format, etag) do
|
||||||
conn
|
conn
|
||||||
|> put_resp_content_type(format, "utf-8")
|
|> put_resp_content_type(format, "utf-8")
|
||||||
|
|||||||
Reference in New Issue
Block a user