# HTTP 404 quando text/html non è il primo nell'header della richiesta accept

**URL:** <https://meta.discourse.org/t/http-404-when-text-html-is-not-first-in-accept-request-header/255164>\
**Category:** Bug\
**Tags:** pr-welcome, rest-api\
**Created:** [14 Febbraio 2023, 9:34pm UTC](https://meta.discourse.org/t/http-404-when-text-html-is-not-first-in-accept-request-header/255164 "2023-02-14T21:34:10Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tgm](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@tgm](https://meta.discourse.org/u/tgm)\
**Post date:** [14 Febbraio 2023, 9:34pm UTC](https://meta.discourse.org/t/http-404-when-text-html-is-not-first-in-accept-request-header/255164/1 "2023-02-14T21:34:10Z")

</div>

L’ordine dei tipi MIME nell’intestazione della richiesta accept inviata al server Discourse sembra contare:

```plaintext
curl -i -H 'Accept: text/plain, text/html' https://meta.discourse.org
HTTP/2 404 
...

```

```plaintext
curl -i -H 'Accept: text/html, text/plain' https://meta.discourse.org
HTTP/2 200
...

```

---

_[View the full topic](https://meta.discourse.org/t/http-404-when-text-html-is-not-first-in-accept-request-header/255164)._
