Jump to content




Argument for http api to disable redirect following


8 replies to this topic

#1 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 05 October 2018 - 02: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

#2 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

Posted 05 October 2018 - 04: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.

#3 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 05 October 2018 - 05: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.

#4 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

Posted 05 October 2018 - 05:11 PM

View PostEveryOS, on 05 October 2018 - 05:00 PM, said:

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 :(.

#5 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 06 October 2018 - 12: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.

#6 blunty666

  • Members
  • 79 posts

Posted 06 October 2018 - 08: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.

#7 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 06 October 2018 - 09: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.

#8 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

Posted 06 October 2018 - 03:49 PM

View PostBomb Bloke, on 06 October 2018 - 09:02 AM, said:

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.

Quote

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 by SquidDev, 06 October 2018 - 03:50 PM.


#9 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 08 October 2018 - 11:40 AM

Hey, as long as Dan200 keeps paying for the computercraft.info domain, that's a start!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users