Skip to content
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

#215 fix read() failure with private repos #216

Merged
merged 2 commits into from
Dec 1, 2015
Merged

#215 fix read() failure with private repos #216

merged 2 commits into from
Dec 1, 2015

Conversation

if6was9
Copy link

@if6was9 if6was9 commented Sep 1, 2015

This fixes #215

@buildhive
Copy link

Kohsuke Kawaguchi » github-api #389 SUCCESS
This pull request looks good
(what's this?)

@oleg-nenashev
Copy link
Collaborator

Should the PR also modify asHttpStatusCode? Otherwise it seems to be quite inconsistent

@oleg-nenashev
Copy link
Collaborator

There are many such request patterns in the class...

@if6was9
Copy link
Author

if6was9 commented Sep 5, 2015

Possibly. read() is 100% broken on private repos, though.

getContent() works but it is deprecated.

This does fix the issue and it seems unlikely to cause regression.

I'll add a MockWebServer test if you support it. OkHttp is used so I suspect it is ok?

@oleg-nenashev
Copy link
Collaborator

@if6was9
Any new tests will be appreciated :)

reorder buildRequest()
@buildhive
Copy link

Kohsuke Kawaguchi » github-api #390 SUCCESS
This pull request looks good
(what's this?)

@buildhive
Copy link

Kohsuke Kawaguchi » github-api #391 SUCCESS
This pull request looks good
(what's this?)

@oleg-nenashev
Copy link
Collaborator

@if6was9
Are you waiting for an additional review?

kohsuke added a commit that referenced this pull request Dec 1, 2015
@kohsuke kohsuke merged commit f9291f9 into hub4j:master Dec 1, 2015
kohsuke added a commit that referenced this pull request Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GHContent.read() is broken due to incorrect HTTP Method
4 participants