Set Vary header when doing content negotiation based on the Accept header (#1105)

Fixes #1105

I think I should not completely replace the `Vary` header value, but update it by just adding the `Accept` item. But that’s not currently easy to do with `Result` (it will be better with `SimpleResult`).