Updated Branches:
  refs/heads/master 30a17bcce -> 89743bb22

Fix error log message in HttpTransact::build_error_response


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/89743bb2
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/89743bb2
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/89743bb2

Branch: refs/heads/master
Commit: 89743bb2294fa3295bff9a50d469215ed967b823
Parents: 30a17bc
Author: Alan M. Carroll <[email protected]>
Authored: Mon Aug 19 23:23:32 2013 -0500
Committer: Alan M. Carroll <[email protected]>
Committed: Mon Aug 19 23:23:32 2013 -0500

----------------------------------------------------------------------
 proxy/http/HttpTransact.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/89743bb2/proxy/http/HttpTransact.cc
----------------------------------------------------------------------
diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc
index 4dfaaf7..28a4130 100644
--- a/proxy/http/HttpTransact.cc
+++ b/proxy/http/HttpTransact.cc
@@ -7820,7 +7820,6 @@ HttpTransact::build_error_response(State *s, HTTPStatus 
status_code, const char
 {
   va_list ap;
   const char *reason_phrase;
-  URL *url;
   char *url_string;
   char body_language[256], body_type[256];
 
@@ -7832,8 +7831,7 @@ HttpTransact::build_error_response(State *s, HTTPStatus 
status_code, const char
   // get the url --- remember this is dynamically allocated //
   ////////////////////////////////////////////////////////////
   if (s->hdr_info.client_request.valid()) {
-    url = s->hdr_info.client_request.url_get();
-    url_string = url ? url->string_get(&s->arena) : NULL;
+    url_string = s->hdr_info.client_request.url_string_get(&s->arena);
   } else {
     url_string = NULL;
   }

Reply via email to