-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support 401 responses for Batch API #415
Conversation
Don't worry about documentation, I already did that here. It's a PR, so still subject to changes of course. |
@@ -117,6 +117,15 @@ func (c *Configuration) BatchTransfer() bool { | |||
return false | |||
} | |||
|
|||
func (c *Configuration) PrivateAccess() bool { | |||
if v, ok := c.GitConfig("lfs.access"); ok { | |||
if v == "private" || v == "PRIVATE" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to use strings.ToLower()
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'll fix up nitpicks when things are closer to working. Just wanted to get this linked to your roadmap.
This is pretty fragile at the moment. It's working but I'm not comfortable with Batch() calling itself. Cleaner code is forthcoming.
This is ready for some 👀. The gist of things: A copy of the When a batch request is run, it will check for an If a request fails with a 401, the |
Support 401 responses for Batch API
This PR adds full 401 support for the Batch API.
Related test server PR: git-lfs/lfs-test-server#33