Skip to content

Convert endpoint may not take the correct mime type into consideration #324

@tagliala

Description

@tagliala
  • The second parameter
    content = Converter.new(logger: @logger).convert_file(params[:action], body, params[:language])
    is not a file, but the file content, which is a string.
  • If the string is plain text, the convert method might miss that it is actually text/markdown and not necessarily text/plain.
  • The params[:file][:type] is indeed correct.

Reference: Issue #322

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions