Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote instances not pulling my media #4257

Closed
2 tasks done
ghost opened this issue Jul 18, 2017 · 2 comments
Closed
2 tasks done

Remote instances not pulling my media #4257

ghost opened this issue Jul 18, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 18, 2017

Hi,

Just posted this toot: I can see remote instances requesting https://from.komic.eu/system/media_attachments/files/000/008/022/original/da96a4d472cc81a3.png (requests are 200ing), here's the result on https://anticapitalist.party/.
Same thing with my avatar or header, as you can see (@[email protected] already tried forcing a refresh from the instance's panel, I already tried changing them).

The following stands out in ACP's logs:
Jul 19 01:16:09 mastodon bundle[21226]: [paperclip] Content Type Spoof: Filename da96a4d472cc81a3.png (inode/x-empty from Headers, ["image/png"] from Extension), content type discovered from file command: inode/x-empty. See documentation to allow this combination.

@[email protected] also reports this.

Does anyone know what's happening here? My server does send the image/png content-type header, the extension is obviously correct, and a file -b --mime da96a4d472cc81a3.png does return image/png too. Pretty confusing.

Cheers.


  • I searched or browsed the repo’s other issues to ensure this is not a duplicate.
  • This bug happens on a tagged release and not on master (If you're a user, don't worry about this).
@ghost
Copy link
Author

ghost commented Jul 27, 2017

@Gargron saved the day: if you're encountering this, disable h2.
httprb/http#422

@ghost ghost closed this as completed Jul 27, 2017
@ixti
Copy link

ixti commented Oct 1, 2017

All interested parts, please participate in discussion about switching underlying parser of http gem here: httprb/http#433

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant