| 997 | -------------------------------------------------------------------------*/ |
| 998 | |
| 999 | inline URL * |
| 1000 | HTTPHdr::url_get() const |
| 1001 | { |
| 1002 | ink_assert(valid()); |
| 1003 | ink_assert(m_http->m_polarity == HTTP_TYPE_REQUEST); |
| 1004 | |
| 1005 | // It's entirely possible that someone changed URL in our impl |
| 1006 | // without updating the cached copy in the C++ layer. Check |
| 1007 | // to see if this happened before handing back the url |
| 1008 | |
| 1009 | URLImpl *real_impl = m_http->u.req.m_url_impl; |
| 1010 | if (m_url_cached.m_url_impl != real_impl) { |
| 1011 | m_url_cached.set(this); |
| 1012 | m_url_cached.m_url_impl = real_impl; |
| 1013 | this->mark_target_dirty(); |
| 1014 | } |
| 1015 | return (&m_url_cached); |
| 1016 | } |
| 1017 | |
| 1018 | /*------------------------------------------------------------------------- |
| 1019 | -------------------------------------------------------------------------*/ |
no test coverage detected