~ubuntu-branches/ubuntu/wily/trafficserver/wily

« back to all changes in this revision

Viewing changes to example/replace-header/replace-header.c

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2012-12-17 22:28:16 UTC
  • mfrom: (5.1.8 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121217222816-7xwjsx5k76zkb63d
Tags: 3.2.0-1ubuntu1
* Revert FreeBSD strerror_r() fixes that give errors with glibc 2.16.
* Apply patch from Konstantinos Margaritis to define barriers on ARM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 *   replace-header.c:
26
26
 *      an example program...
27
27
 *
 
28
 *   NOTE: If faced with duplicate headers, this will only detect the
 
29
 *         first instance.  Operational plugins may need to do more!
28
30
 *
29
31
 *      Usage:
30
32
 *
42
44
  TSMLoc resp_loc;
43
45
  TSMLoc field_loc;
44
46
 
45
 
  if (!TSHttpTxnServerRespGet(txnp, &resp_bufp, &resp_loc)) {
 
47
  if (TSHttpTxnServerRespGet(txnp, &resp_bufp, &resp_loc) != TS_SUCCESS) {
46
48
    TSError("couldn't retrieve server response header.\n");
47
49
    goto done;
48
50
  }