Skip to content

Instantly share code, notes, and snippets.

@hostmaster
Created January 11, 2013 16:18
Show Gist options
  • Save hostmaster/4511909 to your computer and use it in GitHub Desktop.
Save hostmaster/4511909 to your computer and use it in GitHub Desktop.
kind of that
//
if (TSHttpTxnClientReqGet(txnp, &req_bufp, &req_loc) != TS_SUCCESS) {
TSError("couldn't retrieve client request header\n");
return 0;
}
length_field_loc = TSMimeHdrFieldFind(req_bufp, req_loc, TS_MIME_FIELD_CONTENT_LENGTH, TS_MIME_LEN_CONTENT_LENGTH);
if (length_field_loc) {
TSMimeHdrDestroy(req_bufp, length_field_loc);
TSHandleMLocRelease(req_bufp, TS_NULL_MLOC, length_field_loc );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment