Fixed HTTP-client query-string handling bug.
[doldaconnect.git] / common / httest.c
index d04c7a2..a3ea649 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Dolda Connect - Modular multiuser Direct Connect-style client
- *  Copyright (C) 2007 Fredrik Tolf (fredrik@dolda2000.com)
+ *  Copyright (C) 2007 Fredrik Tolf <fredrik@dolda2000.com>
  *  
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -94,6 +94,7 @@ void get(char *url)
     }
     c = htconnect(u);
     freeurl(u);
+    c->autoredir = 1;
     while(1) {
        pfd.fd = c->fd;
        pfd.events = htpollflags(c);