Skip to content

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

Merged
kohsuke merged 2 commits intohub4j:masterfrom
if6was9:issue-215-download-failure
Dec 1, 2015
Merged

#215 fix read() failure with private repos#216
kohsuke merged 2 commits intohub4j:masterfrom
if6was9:issue-215-download-failure

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