fix redirected wms capabilities requests