Adding port on the header so it works on zope/plone

Some days ago @sneridagh asked why it doesn't work on plone/zope and it's because the hostname on the header needs to have it's port on it or we are rewriting the urls to the same request url getting wrong links.

With this patch we send also the port to the header.