| 1860 | } |
| 1861 | |
| 1862 | void |
| 1863 | url_CryptoHash_get(const URLImpl *url, CryptoHash *hash, bool ignore_query, cache_generation_t generation) |
| 1864 | { |
| 1865 | URLHashContext ctx; |
| 1866 | if ((url_hash_method != 0) && (url->m_url_type == URL_TYPE_HTTP) && |
| 1867 | ((url->m_len_user + url->m_len_password + (ignore_query ? 0 : url->m_len_query)) == 0) && |
| 1868 | (10u + url->m_len_scheme + url->m_len_host + url->m_len_path < BUFSIZE) && |
| 1869 | (memchr(url->m_ptr_host, '%', url->m_len_host) == nullptr) && (memchr(url->m_ptr_path, '%', url->m_len_path) == nullptr)) { |
| 1870 | url_CryptoHash_get_fast(url, ctx, hash, generation); |
| 1871 | #ifdef DEBUG |
| 1872 | CryptoHash hash_general; |
| 1873 | url_CryptoHash_get_general(url, ctx, hash_general, ignore_query, generation); |
| 1874 | ink_assert(*hash == hash_general); |
| 1875 | #endif |
| 1876 | } else { |
| 1877 | url_CryptoHash_get_general(url, ctx, *hash, ignore_query, generation); |
| 1878 | } |
| 1879 | } |
| 1880 | |
| 1881 | static inline void |
| 1882 | url_CryptoHash_get_general_92(const URLImpl *url, CryptoContext &ctx, CryptoHash &hash, bool ignore_query, |
no test coverage detected