You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.
It appears as though the auto render function looks at the content type header over the accept header to determine what to return to the client.
As far as I know content type gives an indication to the receiver what is in the request and accept tells the receiver what the client expects to receive back.
So a client posting json to the server would have that as the content type and an accept header set to html so it gets an html document back.
Or could set the both the same to post json and get json back.
The text was updated successfully, but these errors were encountered:
It appears as though the auto render function looks at the content type header over the accept header to determine what to return to the client.
As far as I know content type gives an indication to the receiver what is in the request and accept tells the receiver what the client expects to receive back.
So a client posting json to the server would have that as the content type and an accept header set to html so it gets an html document back.
Or could set the both the same to post json and get json back.
The text was updated successfully, but these errors were encountered: