Skip to content

.txt.asc files are downloaded instead of displayed in browser #69

Closed

Description

Activity

  1. flakey5 commented on Nov 15, 2023

    @flakey5
    Member

    I believe this is because there's a difference in the content-type headers, nginx returns content-type: text/plain while R2 returns content-type: application/pgp-keys. The content type for each file is stored in R2's metadata, I don't believe we can update it after uploading but I could be wrong.

    A simple fix would be to just check if it's a .asc file when constructing the serve file response and send a text/plain content type instead of whatever R2 has it as. We already do check if it's a .json file for CORS headers

  2. targos commented on Nov 15, 2023

    @targos
    MemberAuthor

    This one is probably not a big deal. I'm ok with just closing the issue.

  3. ovflowd commented on Nov 18, 2023

    @ovflowd
    Member

    I also think this is not a big deal, just funny that R2 has a different content/type for this than nginx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions