joomla-framework / http

Joomla Framework Http Package
GNU General Public License v2.0
17 stars 21 forks source link

Don't add Host-Header in Socket-Transport if it's already mentioned on headers #39

Closed bitbaendiger closed 5 years ago

bitbaendiger commented 5 years ago

When using Socket-Transport Host-Header might be send twice if it was already mentioned on Headers for the request. This might confuse Apache's mod_ssl and returns a 421-Error, this leads to situations where e.g. HTTPS cannot be enabled on Joomla's backend.

Summary of Changes

Test if Host-Header is not set before adding a static Host-Header

Testing Instructions

Disable all other Transports and try fetch a HTTPS-Resource from a mod_ssl-powered Apache httpd.

Documentation Changes Required

None.

mbabker commented 5 years ago

Thanks!