[OpenSIPS-Devel] [OpenSIPS/opensips] 4ec793: Added content-aware body (multi-part) changing.

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Oct 25 23:09:17 CEST 2016


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 4ec793600d60be4386758afa763da5205040fd79
      https://github.com/OpenSIPS/opensips/commit/4ec793600d60be4386758afa763da5205040fd79
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-10-26 (Wed, 26 Oct 2016)

  Changed paths:
    M msg_translator.c
    M msg_translator.h
    M parser/parse_body.c
    M parser/parse_body.h

  Log Message:
  -----------
  Added content-aware body (multi-part) changing.

The new code allows parsing and modification of the body via the "body parts" list - parts can be modified (with function or lumps), can be deleted and new ones can be added. Any type of modification (and any of them) is allowed.
The body is completely rebuild based on the resulting list of body parts.
Also the new code supports transparent transitions from no body to body, single part body to multi-part body or the other way around - with automatic update of the Content-Type and Content-Len headers, of course.




More information about the Devel mailing list