-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Milestone
Description
This sounds a little counterintuitive, because the header is a way to get around certain complex values registering as formats in the URL; but fortunately with #60 the developer can specify a regex for their complex tokens, and this should be less of an issue.
The monkey wrench is that if you're just making a vanilla request in the browser for "foo.json" the browser sends an Accept header of text/html
. So for that reason, we should give url format/extension precedence over the Accept header because the user entering "foo.json" clearly has a better idea of what they want than the browser, which is just guessing.