ws: Fixes to contents of of "authorize" messages
ws: Fixes to contents of of "authorize" messages

Only send back an "authorize" response when it had a cookie.
I addition don't include "host" if no host in request.

Closes #6203
Reviewed-by: Peter <a316049dd34607c62d4611d63ab22a6454add223@redhat.com>

andreasn/cockpit,moraleslazaro/cockpit,xhad/cockpit,garrett/cockpit,stefwalter/cockpit,deryni/cockpit,petervo/cockpit,SotolitoLabs/cockpit,martinpitt/cockpit,Scribery/cockpit,martinpitt/cockpit,Scribery/cockpit,martinpitt/cockpit,stefwalter/cockpit,cockpit-project/cockpit,mareklibra/cockpit,xhad/cockpit,mareklibra/cockpit,stefwalter/cockpit,petervo/cockpit,petervo/cockpit,cockpit-project/cockpit,larskarlitski/cockpit,mvollmer/cockpit,cockpituous/cockpit,SotolitoLabs/cockpit,Scribery/cockpit,garrett/cockpit,michalskrivanek/cockpit,larsu/cockpit,larsu/cockpit,andreasn/cockpit,larskarlitski/cockpit,michalskrivanek/cockpit,larsu/cockpit,garrett/cockpit,larsu/cockpit,cockpituous/cockpit,mareklibra/cockpit,moraleslazaro/cockpit,larsu/cockpit,harishanand95/cockpit,harishanand95/cockpit,moraleslazaro/cockpit,larskarlitski/cockpit,dperpeet/cockpit,dperpeet/cockpit,martinpitt/cockpit,harishanand95/cockpit,petervo/cockpit,larskarlitski/cockpit,SotolitoLabs/cockpit,michalskrivanek/cockpit,larskarlitski/cockpit,petervo/cockpit,deryni/cockpit,stefwalter/cockpit,mareklibra/cockpit,dperpeet/cockpit,mvollmer/cockpit,stefwalter/cockpit,mvollmer/cockpit,Scribery/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,andreasn/cockpit,andreasn/cockpit,michalskrivanek/cockpit,mareklibra/cockpit,garrett/cockpit,mvollmer/cockpit,dperpeet/cockpit,deryni/cockpit,martinpitt/cockpit,xhad/cockpit,SotolitoLabs/cockpit,mareklibra/cockpit,garrett/cockpit,deryni/cockpit,cockpit-project/cockpit,andreasn/cockpit,moraleslazaro/cockpit,michalskrivanek/cockpit,cockpituous/cockpit,deryni/cockpit,cockpit-project/cockpit,dperpeet/cockpit,harishanand95/cockpit,mvollmer/cockpit,deryni/cockpit,xhad/cockpit,harishanand95/cockpit,michalskrivanek/cockpit,larskarlitski/cockpit,SotolitoLabs/cockpit,cockpituous/cockpit,larsu/cockpit,andreasn/cockpit,petervo/cockpit,moraleslazaro/cockpit,xhad/cockpit,xhad/cockpit,Scribery/cockpit,dperpeet/cockpit,cockpit-project/cockpit,stefwalter/cockpit,dperpeet/cockpit,michalskrivanek/cockpit,harishanand95/cockpit,harishanand95/cockpit,SotolitoLabs/cockpit,Scribery/cockpit,andreasn/cockpit,SotolitoLabs/cockpit,xhad/cockpit,deryni/cockpit,stefwalter/cockpit,mareklibra/cockpit,cockpituous/cockpit,larskarlitski/cockpit,Scribery/cockpit,petervo/cockpit