Branch: Tag:

2017-11-27

2017-11-27 12:08:37 by Karl Gustav Sterneberg <kg@roxen.com>

HTTPClient: Now supports setting follow_redirects.
You can now specify the max number of times redirects will be
followed.

116:       Result res;    Session s = Session(); +  if (args && args->follow_redirects > -1) { +  s->follow_redirects = args->follow_redirects; +  }    object /* Session.Request */ qr;    Thread.Queue q;    mixed co_maxtime;
227:    //! Request timeout    int maxtime;    +  //! Number of times to follow redirects. A negative value will result in a +  //! default value being used. +  int follow_redirects = -1; +     //! Additional request headers    mapping(string:string) headers;