jeudi 27 juillet 2017

Which part sets `Content-Type` to `text/HTML` in response

Here is some Laravel code for a route:

Route::get('a', function() {
    return 'hello';
});

Calling this route, the Content-Type header value is text/HTML.

Where does this default behavior come from? Is it set by:

  • Nginx?
  • PHP?
  • Laravel?


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire