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 was archived by the owner on Dec 14, 2018. It is now read-only.
GetText() always returns text/plain even if I specify "Accept: application/xml" in request header. This happens only in case of return type "string". I expect get xml instead of plain text. See sample requests below:
Request 1:
GET /text HTTP/1.1
Host: localhost:5004
Accept: application/xml
Response 1:
HTTP/1.1 200 OK
Date: Fri, 04 Dec 2015 20:13:00 GMT
Content-Type: text/plain; charset=utf-8
Server: Kestrel
Some text
Request 2:
GET /textarray HTTP/1.1
Host: localhost:5004
Accept: application/xml
Response 2:
HTTP/1.1 200 OK
Date: Fri, 04 Dec 2015 20:13:04 GMT
Content-Type: application/json; charset=utf-8
Server: Kestrel