Chain the response header hook to send the proxy's authorization response.
| 269 | |
| 270 | // Chain the response header hook to send the proxy's authorization response. |
| 271 | static void |
| 272 | AuthChainAuthorizationResponse(AuthRequestContext *auth) |
| 273 | { |
| 274 | if (auth->vconn) { |
| 275 | TSVConnClose(auth->vconn); |
| 276 | auth->vconn = nullptr; |
| 277 | } |
| 278 | |
| 279 | TSHttpTxnHookAdd(auth->txn, TS_HTTP_SEND_RESPONSE_HDR_HOOK, auth->cont); |
| 280 | TSHttpTxnReenable(auth->txn, TS_EVENT_HTTP_ERROR); |
| 281 | } |
| 282 | |
| 283 | // Transform the client request into a HEAD request and write it out. |
| 284 | static bool |
no test coverage detected