Restful
Restful copied to clipboard
Bad HTTP code returned for invalid Accept header
Before commit 7530d8d5b25038564843de024204d540d317c4ed, there was correct 406 code sent, when server didn't understand the Accept header. Now it sends 415, which is completly different. This commit should probably be reverted (maybe with little bit better message with quotes around the header contents?).