Skip to content

Commit 218b1e7

Browse files
authored
Update GitHubConnectorResponse.java
1 parent 6a2a800 commit 218b1e7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/kohsuke/github/connector/GitHubConnectorResponse.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ public String header(String name) {
8787
public abstract InputStream bodyStream() throws IOException;
8888

8989
/**
90-
* Gets the {@link GitHubConnectorRequest} for this response.
90+
* Gets the {@link GitHubConnector} for this response.
9191
*
92-
* @return the {@link GitHubConnectorRequest} for this response.
92+
* @return the {@link GitHubConnector} for this response.
9393
*/
9494
@Nonnull
9595
public GitHubConnectorRequest request() {
@@ -192,21 +192,21 @@ public InputStream bodyStream() throws IOException {
192192
InputStream body;
193193
if (!inputStreamRead) {
194194
body = wrapStream(rawBodyStream());
195-
if (!request.avoidBufferedResponseStream()) {
195+
if (!request().avoidBufferedResponseStream()) {
196196
try (InputStream stream = body) {
197197
if (stream != null) {
198198
inputBytes = IOUtils.toByteArray(stream);
199199
}
200200
}
201201
}
202202
inputStreamRead = true;
203-
if (request.avoidBufferedResponseStream()) {
203+
if (request().avoidBufferedResponseStream()) {
204204
return body;
205205
}
206206
}
207207
}
208208

209-
if (request.avoidBufferedResponseStream()) {
209+
if (request().avoidBufferedResponseStream()) {
210210
throw new IOException("Response is already consumed");
211211
} else if (inputBytes == null) {
212212
throw new IOException("Response body missing, stream null");

0 commit comments

Comments
 (0)