• exec/load/http.js

    From echicken@VERT to CVS commit on Tuesday, July 21, 2020 21:26:28
    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 Tuesday, July 21, 2020 21:31:48
    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 Wednesday, August 26, 2020 20:36:37
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/39f15ed27aaa1d54a06dd5a6
    Modified Files:
    exec/load/http.js
    Log Message:
    Better error reporting to help root-caues Nelgin's problem using bccnews.js

    <nelgin> !JavaScript : uncaught exception: Unknown scheme! 'undefined'
    <nelgin> (error with no line number) is the worst.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Friday, January 22, 2021 10:50:35
    https://gitlab.synchro.net/main/sbbs/-/commit/d802a7c951555b1dc7135a3c
    Modified Files:
    exec/load/http.js
    Log Message:
    Sub in original scheme://host[:port] if absent from Location on redirect.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Monday, February 15, 2021 15:51:05
    https://gitlab.synchro.net/main/sbbs/-/commit/aeb26cba8747e3adeca26d39
    Modified Files:
    exec/load/http.js
    Log Message:
    Parse redirects the easy way.

    I'm not sure what echicken was trying here, but apparently it doesn't
    work for nelgin.

    Likely fixes #220.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Monday, February 15, 2021 15:54:07
    https://gitlab.synchro.net/main/sbbs/-/commit/5379321a722821aab964b2ab
    Modified Files:
    exec/load/http.js
    Log Message:
    Less tired.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Monday, February 15, 2021 19:01:21
    https://gitlab.synchro.net/main/sbbs/-/commit/69dc58973f60f0caf9added6
    Modified Files:
    exec/load/http.js
    Log Message:
    Parse redirects the easy way.

    I'm not sure what echicken was trying here, but apparently it doesn't
    work for nelgin.

    Likely fixes #220.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Monday, February 15, 2021 19:01:21
    https://gitlab.synchro.net/main/sbbs/-/commit/b9c69894964b2c6ec7d6a4a5
    Modified Files:
    exec/load/http.js
    Log Message:
    Less tired.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Monday, February 15, 2021 19:14:16
    https://gitlab.synchro.net/main/sbbs/-/commit/21a3882f8c03fc4426088db4
    Modified Files:
    exec/load/http.js
    Log Message:
    Parse redirects the easy way.

    I'm not sure what echicken was trying here, but apparently it doesn't
    work for nelgin.

    Likely fixes #220.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Monday, February 15, 2021 19:14:16
    https://gitlab.synchro.net/main/sbbs/-/commit/8311170c1b66bdda0adfe71f
    Modified Files:
    exec/load/http.js
    Log Message:
    Less tired.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Monday, February 15, 2021 19:31:37
    https://gitlab.synchro.net/main/sbbs/-/commit/dfd7e11c58b1fd3b53c2c0dc
    Modified Files:
    exec/load/http.js
    Log Message:
    Parse redirects the easy way.

    I'm not sure what echicken was trying here, but apparently it doesn't
    work for nelgin.

    Likely fixes #220.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Monday, February 15, 2021 19:31:37
    https://gitlab.synchro.net/main/sbbs/-/commit/2cbf30304429df5ebee5cf09
    Modified Files:
    exec/load/http.js
    Log Message:
    Less tired.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Friday, November 24, 2023 06:15:20
    https://gitlab.synchro.net/main/sbbs/-/commit/02bc1bb84255e04f94849fb1
    Modified Files:
    exec/load/http.js
    Log Message:
    Normalize parsed_headers keys to lowercase.

    Fixes #675 (probably).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Friday, November 24, 2023 07:28:39
    https://gitlab.synchro.net/main/sbbs/-/commit/b41d1226f147cb93842af56d
    Modified Files:
    exec/load/http.js
    Log Message:
    Keep original header name alongside normalized for now. We should probably switch to using a method to read these values and do normalization there.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Friday, November 24, 2023 07:32:22
    https://gitlab.synchro.net/main/sbbs/-/commit/f25e8e59f6b1bf4bc5f635f7
    Modified Files:
    exec/load/http.js
    Log Message:
    Normalized header name may already match what we received.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net