Follow

@ftdl Wasze obrazki są serwowane z niewłaściwym content type:

```
[robryk@howl:~]$ curl -s --head pol.social/system/media_attach | grep content-type
content-type: text/plain
x-content-type-options: nosniff

[robryk@howl:~]$ curl -s pol.social/system/media_attach | file -
/dev/stdin: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, baseline, precision 8, 1080x1080, components 3
```

@ftdl @robryk @piotrsikora

Oo, jfif, trudne wylosowałeś ;)

Zobaczymy, co da się zrobić. Temat zgaszany w 2017, jak czytam na github mastodona, a w vanilla 4.2.7 nie działa...

@m0bi13 @ftdl @piotrsikora

To chyba jest zwykły jpeg (całe zamieszanie jfif vs jpeg bierze sie IIUC z tego, ze standard jpeg nie okresla co te trzy komponenty znacza).

Być może innym fragmentem problemu jest to, że text/plain jest bardzo złym domysłem (już application/octet-stream byłoby lepszym i z punktu widzenia prawdomówności jak i z punktu widzenia skutków).

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.