I'm currently using the Web API Preview 5 release and have noticed something when using the
If I make a GET request and set the Content-Type header (with no Accept header at all) to either XML or JSON I get my response back in the appropriate XML or JSON format, however I thought this would only happen if an Accept header was set?
Is this expected/designed behaviour?
The reason I ask is that this 'feature' could be useful when using the basic System.Net.WebClient class to make requests as the Accept Header cannot be set, but I do not want to make a habit of using this 'feature' if it is possible that it is
a bug and may be removed in a future update.
If anyone can provide any concrete detail that would be much appreciated