Fixes server variable conversion to headers