Skip to content

Commit 1965c12

Browse files
committed
Changed headers
1 parent 97a8342 commit 1965c12

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.exceptionless</groupId>
88
<artifactId>exceptionless-client</artifactId>
9-
<version>1.0</version>
9+
<version>1.0-beta1</version>
1010

1111
<dependencies>
1212
<dependency>

samples/example-app/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.exceptionless</groupId>
88
<artifactId>example-app</artifactId>
9-
<version>1.0</version>
9+
<version>1.0-beta1</version>
1010

1111
<dependencies>
1212
<dependency>

src/main/java/com/exceptionless/exceptionlessclient/settings/DefaultSettingsClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public SettingsResponse getSettings(long version) {
4242
HttpRequest.newBuilder()
4343
.uri(uri)
4444
.GET()
45-
.header("X-Exceptionless-Client", Configuration.USER_AGENT)
45+
.header("User-Agent", Configuration.USER_AGENT)
4646
.timeout(Duration.ofMillis(configuration.getSettingsClientTimeoutInMillis()))
4747
.build();
4848

src/main/java/com/exceptionless/exceptionlessclient/submission/DefaultSubmissionClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private SubmissionResponse postSubmission(String url, Object data) {
7575
.uri(uri)
7676
.POST(HttpRequest.BodyPublishers.ofString(requestJSON))
7777
.header("Content-Type", "application/json")
78-
.header("X-Exceptionless-Client", Configuration.USER_AGENT)
78+
.header("User-Agent", Configuration.USER_AGENT)
7979
.timeout(Duration.ofMillis(configuration.getSubmissionClientTimeoutInMillis()))
8080
.build();
8181

src/test/java/com/exceptionless/exceptionlessclient/settings/DefaultSettingsClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ public void itCanHandleASuccessfulResponse() throws IOException, InterruptedExce
4848
httpRequest.method().equals("GET")
4949
&& httpRequest.timeout().isPresent()
5050
&& httpRequest.timeout().get().equals(Duration.ofMillis(10))
51-
&& httpRequest.headers().firstValue("X-Exceptionless-Client").isPresent()
51+
&& httpRequest.headers().firstValue("User-Agent").isPresent()
5252
&& httpRequest
5353
.headers()
54-
.firstValue("X-Exceptionless-Client")
54+
.firstValue("User-Agent")
5555
.get()
5656
.equals("exceptionless-java")
5757
&& httpRequest

src/test/java/com/exceptionless/exceptionlessclient/submission/DefaultSubmissionClientTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ public void itCanPostEventsSuccessfully() throws IOException, InterruptedExcepti
7171
.firstValue("Content-Type")
7272
.get()
7373
.equals("application/json")
74-
&& request.headers().firstValue("X-Exceptionless-Client").isPresent()
74+
&& request.headers().firstValue("User-Agent").isPresent()
7575
&& request
7676
.headers()
77-
.firstValue("X-Exceptionless-Client")
77+
.firstValue("User-Agent")
7878
.get()
7979
.equals("exceptionless-java")
8080
&& request.timeout().isPresent()
@@ -139,10 +139,10 @@ public void itCanPostUserDescriptionSuccessfully() throws IOException, Interrupt
139139
.firstValue("Content-Type")
140140
.get()
141141
.equals("application/json")
142-
&& request.headers().firstValue("X-Exceptionless-Client").isPresent()
142+
&& request.headers().firstValue("User-Agent").isPresent()
143143
&& request
144144
.headers()
145-
.firstValue("X-Exceptionless-Client")
145+
.firstValue("User-Agent")
146146
.get()
147147
.equals("exceptionless-java")
148148
&& request.timeout().isPresent()

0 commit comments

Comments
 (0)