Ignore:
Timestamp:
2021-07-17T14:14:21+02:00 (4 years ago)
Author:
Don-vip
Message:

see #21126 - add unit test

Location:
applications/editors/josm/plugins/http2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/http2

    • Property svn:ignore
      •  

        old new  
        22build
        33javadoc
         4bintest
  • applications/editors/josm/plugins/http2/src/org/openstreetmap/josm/plugins/http2/Http2Client.java

    r35427 r35790  
    4646    @Override
    4747    protected void setupConnection(ProgressMonitor progressMonitor) throws IOException {
     48        request = createRequest();
     49
     50        notifyConnect(progressMonitor);
     51       
     52        if (requiresBody()) {
     53            logRequestBody();
     54        }
     55    }
     56
     57    protected HttpRequest createRequest() throws IOException {
    4858        HttpRequest.Builder requestBuilder;
    4959        try {
     
    7787            }
    7888        }
    79         request = requestBuilder.build();
    80 
    81         notifyConnect(progressMonitor);
    82        
    83         if (requiresBody()) {
    84             logRequestBody();
    85         }
     89        return requestBuilder.build();
    8690    }
    8791
Note: See TracChangeset for help on using the changeset viewer.