This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
EveryOS's profile picture

Argument for http api to disable redirect following

Started by EveryOS, 05 October 2018 - 01:49 PM
EveryOS #1
Posted 05 October 2018 - 03:49 PM
By default the http API will automatically follow redirects (the ones shown within the header of HTTP pages).
It would be nice if we could disable this
SquidDev #2
Posted 05 October 2018 - 05:38 PM
CC: Tweaked allows you to do this by setting the redirect flag to false:

local handle, err = http.get {
  url = "https://squiddev.cc/maven",
  redirect = false
}
This just uses the same argument format as luasocket.http.
EveryOS #3
Posted 05 October 2018 - 06:00 PM
That sounds cool. I'll be sure to put CC: Tweaked support in my project. But it would be nice if this was in actual CC.
SquidDev #4
Posted 05 October 2018 - 06:11 PM
That sounds cool. I'll be sure to put CC: Tweaked support in my project. But it would be nice if this was in actual CC.
Obviously! Though given the current maintenance state of CC, it's looking increasingly unlikely this'll happen :(/>.
Bomb Bloke #5
Posted 06 October 2018 - 01:48 AM
I think those chances follow a 1/x curve: I mean, yeah, technically they're getting lower as time goes on, but they're already so close to zero that they might as well be there.
blunty666 #6
Posted 06 October 2018 - 09:34 AM
I'm not usually one for negative comments but frankly at this point the lack of respect Dan is showing for this community is unacceptable… especially SquidDev who has put so much effort into maintaining the code base.

Maybe I've got the wrong idea (I really hope I have :)/>) and there are things happening behind the scenes? That being said it only takes 5 minutes to do a quick post, even if it is to say he doesn't intend to do anything with CC anymore.
Bomb Bloke #7
Posted 06 October 2018 - 10:02 AM
Not that he owes anybody an announcement (or anything else, for that matter), but to me his intentions to wind down his involvement were made clear when he open sourced the mod. This happened about the time he joined a new software development team.

Although I'm sure that even now he'd like to do a bit more with ComputerCraft, it simply becomes harder to go back to a project as you spend more and more time away from it. The changes brought along by MC1.13 certainly won't make it any easier.
SquidDev #8
Posted 06 October 2018 - 04:49 PM
Not that he owes anybody an announcement (or anything else, for that matter), but to me his intentions to wind down his involvement were made clear when he open sourced the mod.
Dan and I had a chat about this last year, where he pretty much confirmed what you've said.
I also have very little free time lately with the new game at work getting busy, it's a bit of a drag to spend it on CC when I have new things I want to make
[…]
Then after [releasing 1.12] I'd like hang up my CC hat altogether and put the responsibility of producing future updates fully on the community. Whether that means drawing a line on the official repo and pushing people towards well maintained forks, or allowing others to maintain the official repo, I'm open to thoughts on
This is obviously perfectly fine - Dan's been working on the mod for 6 years, and done a phenomenal job. I've been modding for less than half of that, and I already get exasperated with it! However, since then, I'm still not sure what Dan's stance is on the main repo - he occasionally merges things, which seems to imply that it will continued to be somewhat maintained. For now I guess I'll just keep plodding on with CC:T ¯\_(ツ)_/¯.

Sorry for entirely derailing the thread, I really didn't mean to but it rather spiralled!
Edited on 06 October 2018 - 02:50 PM
EveryOS #9
Posted 08 October 2018 - 12:40 PM
Hey, as long as Dan200 keeps paying for the computercraft.info domain, that's a start!