Skip to content

Commit 8302be6

Browse files
chore: update dependencies (#15)
1 parent ccc85ab commit 8302be6

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies {
2626
// Note (alexa): this is the speakeasy fork of the har-java library
2727
implementation files('lib/har-java.jar')
2828
implementation files('lib/speakeasy-schemas.jar')
29-
compileOnly(group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.7.4') {
29+
compileOnly(group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.7.5') {
3030
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
3131
}
3232
implementation('org.slf4j:slf4j-api:1.7.36')
@@ -44,15 +44,15 @@ dependencies {
4444
implementation files('./src/main/resources/commons-io-2.11.0.jar')
4545
implementation 'org.yaml:snakeyaml:1.33'
4646

47-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
48-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
47+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
48+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
4949
testImplementation 'org.mockito:mockito-core:4.6.1'
5050
testImplementation 'org.springframework:spring-test:5.3.23'
5151
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.2'
52-
testImplementation 'org.springframework.boot:spring-boot-test:2.7.4'
53-
testImplementation 'org.springframework.boot:spring-boot-test-autoconfigure:2.7.4'
52+
testImplementation 'org.springframework.boot:spring-boot-test:2.7.5'
53+
testImplementation 'org.springframework.boot:spring-boot-test-autoconfigure:2.7.5'
5454
testImplementation 'org.hamcrest:hamcrest-all:1.3'
55-
testImplementation(group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.7.4') {
55+
testImplementation(group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.7.5') {
5656
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
5757
}
5858

src/main/java/dev/speakeasyapi/micronaut/implementation/SpeakeasyCapture.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package dev.speakeasyapi.micronaut.implementation;
22

33
import java.io.ByteArrayOutputStream;
4+
import java.net.URL;
45
import java.time.Instant;
56
import java.util.concurrent.Executor;
67
import java.util.concurrent.Executors;
78

89
import org.slf4j.Logger;
910
import org.slf4j.LoggerFactory;
10-
import org.springframework.web.util.UriComponents;
11-
import org.springframework.web.util.UriComponentsBuilder;
1211

1312
import com.google.common.util.concurrent.MoreExecutors;
1413

@@ -54,19 +53,17 @@ public void run() {
5453

5554
request.removeRequestId();
5655

57-
UriComponents uriComponents = UriComponentsBuilder
58-
.fromUriString(this.request.getRequest().uri())
59-
.build();
60-
6156
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
6257

6358
try {
59+
URL url = new URL(this.request.getRequest().uri());
60+
6461
new SpeakeasyHarBuilder(this.logger)
6562
.withStartTime(context.getStartTime())
6663
.withEndTime(endTime)
67-
.withHostName(uriComponents.getHost())
64+
.withHostName(url.getHost())
6865
.withOutputStream(outputStream)
69-
.withPort(uriComponents.getPort())
66+
.withPort(url.getPort())
7067
.withMasking(controller.getMasking())
7168
.withRequest(this.request)
7269
.withResponse(this.response, this.request.getProtocol())

0 commit comments

Comments
 (0)