Index: gwlib/http.c
===================================================================
RCS file: /home/cvs/gateway/gwlib/http.c,v
retrieving revision 1.262
diff -a -u -r1.262 http.c
--- gwlib/http.c	18 Jun 2009 07:25:59 -0000	1.262
+++ gwlib/http.c	13 Jan 2010 00:26:11 -0000
@@ -1769,17 +1769,16 @@
 
     request_id = trans->request_id;
     *status = trans->status;
+    *final_url = trans->url;
+    trans->url = NULL;
     
     if (trans->status >= 0) {
-        *final_url = trans->url;
         *headers = trans->response->headers;
         *body = trans->response->body;
 
-        trans->url = NULL;
         trans->response->headers = NULL;
         trans->response->body = NULL;
     } else {
-       *final_url = NULL;
        *headers = NULL;
        *body = NULL;
     }
