Added a checking on headers in WResponse