HN user

fork-while-fork

43 karma
Posts0
Comments9
View on HN
No posts found.

This is exactly the problem with unlimited PTO. It makes employees to feel guilty about taking time off and allows employers to avoid paying out unused time off when they leave.

Go 1.17 Beta 5 years ago

You can tell http.Client to not redirect:

    client := &http.Client{
        CheckRedirect: func(req *http.Request, via []*http.Request) error {
            return http.ErrUseLastResponse
        },
    }
Then use the client as normal. You can also modify the function for very specific redirect behavior.