Fixed wrong method for set_headers