def _clean_incoming_headers(self, env):
        for h in env.keys():
            if h in self.incoming_allow_headers:
                continue
            for p in self.incoming_allow_headers_startswith:
                if h.startswith(p):
                    break
            else:
                if h in self.incoming_remove_headers:
                    del env[h]
                    continue
                for p in self.incoming_remove_headers_startswith:
                    if h.startswith(p):
                        del env[h]
                        break
Disconnect from the instant messaging server.
dataset/ETHPy150Open openstack/swift/swift/common/middleware/tempurl.py/TempURL._clean_incoming_headers--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/sub_collab/negotiator/irc.py/IRCNegotiator.disconnect