Skip to content

Commit fb4805a

Browse files
author
Jevgeni Koltšin
committed
removed x-source header
1 parent e902011 commit fb4805a

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/main/java/com/creatubbles/api/core/CreatubblesRequest.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
public abstract class CreatubblesRequest<T extends CreatubblesResponse> {
2121
private String endPoint, acceptLanguage, data;
22-
private String xSource = "mc-mod";
2322
private HttpMethod httpMethod;
2423
private Map<String, String> urlParameters;
2524
private Response response;
@@ -87,15 +86,6 @@ public CreatubblesRequest<T> setAcceptLanguage(String acceptLanguage) {
8786
return this;
8887
}
8988

90-
public String getXSource() {
91-
return xSource;
92-
}
93-
94-
public CreatubblesRequest<T> setXSource(String xSource) {
95-
this.xSource = xSource;
96-
return this;
97-
}
98-
9989
public String getData() {
10090
return data;
10191
}
@@ -214,9 +204,6 @@ public CreatubblesRequest<T> execute() {
214204
if (accessToken != null && !accessToken.isEmpty()) {
215205
invocationBuilder.header("Authorization", "Bearer " + accessToken);
216206
}
217-
if (xSource != null && !xSource.isEmpty()) {
218-
invocationBuilder.header("X-Source", xSource.toLowerCase());
219-
}
220207

221208
if (httpMethod == HttpMethod.GET) {
222209
response = invocationBuilder.get();
@@ -251,9 +238,6 @@ public CreatubblesRequest<T> async() {
251238
if (accessToken != null && !accessToken.isEmpty()) {
252239
invocationBuilder.header("Authorization", "Bearer " + accessToken);
253240
}
254-
if (xSource != null && !xSource.isEmpty()) {
255-
invocationBuilder.header("X-Source", xSource.toLowerCase());
256-
}
257241

258242
if (httpMethod == HttpMethod.GET) {
259243
futureResponse = invocationBuilder.async().get();

src/main/java/com/creatubbles/api/request/auth/OAuthAccessTokenRequest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ public CreatubblesRequest<OAuthAccessTokenResponse> execute() {
4242
.request(MediaType.APPLICATION_FORM_URLENCODED)
4343
.accept(MediaType.APPLICATION_JSON);
4444

45-
if (getXSource() != null && !getXSource().isEmpty()) {
46-
invocationBuilder.header("X-Source", getXSource().toLowerCase());
47-
}
48-
4945
Form form = new Form() //
5046
.param("grant_type", "password") //
5147
.param("client_id", CLIENT_ID) //

0 commit comments

Comments
 (0)