File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/org/kohsuke/github/connector Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,9 @@ public String header(String name) {
87
87
public abstract InputStream bodyStream () throws IOException ;
88
88
89
89
/**
90
- * Gets the {@link GitHubConnectorRequest } for this response.
90
+ * Gets the {@link GitHubConnector } for this response.
91
91
*
92
- * @return the {@link GitHubConnectorRequest } for this response.
92
+ * @return the {@link GitHubConnector } for this response.
93
93
*/
94
94
@ Nonnull
95
95
public GitHubConnectorRequest request () {
@@ -192,21 +192,21 @@ public InputStream bodyStream() throws IOException {
192
192
InputStream body ;
193
193
if (!inputStreamRead ) {
194
194
body = wrapStream (rawBodyStream ());
195
- if (!request .avoidBufferedResponseStream ()) {
195
+ if (!request () .avoidBufferedResponseStream ()) {
196
196
try (InputStream stream = body ) {
197
197
if (stream != null ) {
198
198
inputBytes = IOUtils .toByteArray (stream );
199
199
}
200
200
}
201
201
}
202
202
inputStreamRead = true ;
203
- if (request .avoidBufferedResponseStream ()) {
203
+ if (request () .avoidBufferedResponseStream ()) {
204
204
return body ;
205
205
}
206
206
}
207
207
}
208
208
209
- if (request .avoidBufferedResponseStream ()) {
209
+ if (request () .avoidBufferedResponseStream ()) {
210
210
throw new IOException ("Response is already consumed" );
211
211
} else if (inputBytes == null ) {
212
212
throw new IOException ("Response body missing, stream null" );
You can’t perform that action at this time.
0 commit comments