| 903 | } |
| 904 | |
| 905 | static int |
| 906 | transformable(TSHttpTxn txnp, bool server, HostConfiguration *host_configuration, int *compress_type, int *algorithms, |
| 907 | bool *content_is_compressible) |
| 908 | { |
| 909 | // First check if content could be compressible |
| 910 | *content_is_compressible = is_content_compressible(txnp, server, host_configuration); |
| 911 | if (!*content_is_compressible) { |
| 912 | return 0; |
| 913 | } |
| 914 | |
| 915 | // Then check if client accepts compression |
| 916 | return client_accepts_compression(txnp, server, host_configuration, compress_type, algorithms); |
| 917 | } |
| 918 | |
| 919 | static void |
| 920 | add_vary_header_for_compressible_content(TSHttpTxn txnp, bool server, HostConfiguration * /* hc ATS_UNUSED */) |
no test coverage detected