MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / is_content_encoding

Function is_content_encoding

modules/compression/compression.c:1613–1636  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

1611 *
1612 */
1613static int is_content_encoding(struct hdr_field* hf)
1614{
1615
1616 #define CONT 0x746e6f43
1617 #define ENT 0x2d746e65
1618 #define ENCO 0x6f636e45
1619 #define DING 0x676e6964
1620
1621 char* name = hf->name.s;
1622
1623 if (DWORD(name) == CONT) {
1624 name += 4;
1625 if (DWORD(name) == ENT) {
1626 name += 4;
1627 if (DWORD(name) == ENCO) {
1628 name += 4;
1629 if (DWORD(name) == DING) {
1630 return 1;
1631 }
1632 }
1633 }
1634 }
1635 return 0;
1636}
1637
1638/*
1639 *

Callers 1

mc_decompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected