Ignore:
Timestamp:
2019-07-08T00:33:39+02:00 (7 years ago)
Author:
Don-vip
Message:

see #17861 - last bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/HttpClient.java

    r15229 r15233  
    176176                    maxRedirects--;
    177177                    Logging.info(tr("Download redirected to ''{0}''", redirectLocation));
    178                     return connect();
     178                    response = connect();
     179                    successfulConnection = true;
     180                    return response;
    179181                } else if (maxRedirects == 0) {
    180182                    String msg = tr("Too many redirects to the download URL detected. Aborting.");
     
    534536     */
    535537    public final byte[] getRequestBody() {
    536         return requestBody;
     538        return Utils.copyArray(requestBody);
    537539    }
    538540
Note: See TracChangeset for help on using the changeset viewer.