Fix compression when using the SPTPS protocol.