private void setupAcceptEncoding ( Map < String , String > requestHeaders ) { // validates whether to add headers for accept-encoding for compression String acceptCompressionFormat = Config . getProperty ( Config . COMPRESSION_RESPONSE_FORMAT ) ; if ( StringUtils . hasText ( acceptCompressionFormat ) ) { requestHeaders . put ( RequestElements . HEADER_PARAM_ACCEPT_ENCODING , acceptCompressionFormat ) ; } }
Setup accept encoding header from configuration