]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Actually send the extra_headers content in write_http_response_header_impl. This...
authorNick Mathewson <nickm@torproject.org>
Wed, 28 Jan 2009 16:06:46 +0000 (16:06 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 28 Jan 2009 16:06:46 +0000 (16:06 +0000)
svn:r18297

ChangeLog
src/or/directory.c

index bd0c4dde627114d7f9891a0a72940f0199778c3a..e14200571e0fdb96c7e78d35f501e574b40202b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,8 @@ Changes in version 0.2.1.12-alpha - 2009-02-??
       0.0.9pre6.
     - Remove a bash-ism from configure.in to build properly on non-Linux
       platforms.  Bugfix on 0.2.1.1-alpha.
+    - Fix code so authorities _actually_ send back X-Descriptor-Not-New
+      headers.  Bugfix on 0.2.0.10-alpha.
 
   o Minor features:
     - Support platforms where time_t is 64 bits long. (Congratulations,
index f72ab41bf6d3635613ddefd3a11374406f1c9c29..6fac10dd7d551e137e4947a4e563d3e8bcd62923 100644 (file)
@@ -2165,8 +2165,10 @@ write_http_response_header_impl(dir_connection_t *conn, ssize_t length,
     strlcpy(cp, "Pragma: no-cache\r\n", sizeof(tmp)-(cp-tmp));
     cp += strlen(cp);
   }
-  if (extra_headers)
+  if (extra_headers) {
     strlcpy(cp, extra_headers, sizeof(tmp)-(cp-tmp));
+    cp += strlen(cp);
+  }
   if (sizeof(tmp)-(cp-tmp) > 3)
     memcpy(cp, "\r\n", 3);
   else