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) {
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" );
You can’t perform that action at this time.
0 commit comments