From echicken@VERT to CVS commit on Tue Jul 21 21:26:28 2020
exec/load http.js 1.45 1.46
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv23764
Modified Files:
http.js
Log Message:
For GET requests, follow 301, 302, 307, and 308 redirects to the first
Location given in the response header, if present. Not enabled by
default, so turn it on like so:
var h = new HTTPRequest();
h.follow_redirects = true;
Should probably add "too many redirects" protection, since this could
turn into an eternal game of HTTP ping-pong.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
From echicken@VERT to CVS commit on Tue Jul 21 21:31:48 2020
exec/load http.js 1.46 1.47
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv24583
Modified Files:
http.js
Log Message:
Shitty hack on previous commit.
Amended HTTPRequest.follow_redirects to be a number instead of boolean.
var h = new HTTPRequest();
h.follow_redirects = 1; // We'll follow this many redirects
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
From Rob Swindell@VERT to Git commit to sbbs/master on Wed Aug 26 20:36:37 2020