server: Set HTTP version as late as possible

So that requests might change headers depending on HTTP request version.

https://bugzilla.gnome.org/show_bug.cgi?id=702555