Skip to content

Commit

Permalink
Update HTTPStreamFactoryTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bgprudhomme authored Aug 3, 2024
1 parent 9a2e224 commit ed6dcb7
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public boolean handle(Request request,
org.eclipse.jetty.server.Response response,
Callback callback) {
assertEquals("yes", request.getHeaders().get("X-Custom"));
callback.success();
callback.succeeded();
}
});
server.start();
Expand Down Expand Up @@ -188,12 +188,11 @@ void newSeekableStreamWithProxy() throws Exception {
void newSeekableStreamSendsCustomHeaders() throws Exception {
server.setHandler(new DefaultHandler() {
@Override
public void handle(String target,
Request baseRequest,
HttpServletRequest request,
HttpServletResponse response) {
assertEquals("yes", request.getHeader("X-Custom"));
baseRequest.setHandled(true);
public boolean handle(Request request,
org.eclipse.jetty.server.Response response,
Callback callback) {
assertEquals("yes", request.getHeaders().get("X-Custom"));
callback.succeeded();
}
});
server.start();
Expand Down

0 comments on commit ed6dcb7

Please sign in to comment.