Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ public void accept(final Map<TopicPartition, Integer> counts, final String threa

try {
final HttpRequest request = HttpRequest.newBuilder()
.uri(new URI(licenseServer + "/usage"))
.version(HttpClient.Version.HTTP_1_1)
.uri(new URI(licenseServer + "/v1/usage"))
.header("Content-Type", "application/json")
.header("Authorization", "Bearer " + apiKey)
.POST(HttpRequest.BodyPublishers.ofString(mapper.writeValueAsString(body)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public synchronized void start() throws IOException {
LOG.info("Starting test license server...");
// Create a server on a random available port (port 0 means OS-assigned)
server = HttpServer.create(new InetSocketAddress(0), 0);
server.createContext("/usage", exchange -> {
server.createContext("/v1/usage", exchange -> {
final var body = exchange.getRequestBody();
final var req = MAPPER.readValue(body, OriginEventsReportRequestV1.class);

Expand Down
Loading