|
19 | 19 |
|
20 | 20 | public abstract class CreatubblesRequest<T extends CreatubblesResponse> { |
21 | 21 | private String endPoint, acceptLanguage, data; |
22 | | - private String xSource = "mc-mod"; |
23 | 22 | private HttpMethod httpMethod; |
24 | 23 | private Map<String, String> urlParameters; |
25 | 24 | private Response response; |
@@ -87,15 +86,6 @@ public CreatubblesRequest<T> setAcceptLanguage(String acceptLanguage) { |
87 | 86 | return this; |
88 | 87 | } |
89 | 88 |
|
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 | | - |
99 | 89 | public String getData() { |
100 | 90 | return data; |
101 | 91 | } |
@@ -214,9 +204,6 @@ public CreatubblesRequest<T> execute() { |
214 | 204 | if (accessToken != null && !accessToken.isEmpty()) { |
215 | 205 | invocationBuilder.header("Authorization", "Bearer " + accessToken); |
216 | 206 | } |
217 | | - if (xSource != null && !xSource.isEmpty()) { |
218 | | - invocationBuilder.header("X-Source", xSource.toLowerCase()); |
219 | | - } |
220 | 207 |
|
221 | 208 | if (httpMethod == HttpMethod.GET) { |
222 | 209 | response = invocationBuilder.get(); |
@@ -251,9 +238,6 @@ public CreatubblesRequest<T> async() { |
251 | 238 | if (accessToken != null && !accessToken.isEmpty()) { |
252 | 239 | invocationBuilder.header("Authorization", "Bearer " + accessToken); |
253 | 240 | } |
254 | | - if (xSource != null && !xSource.isEmpty()) { |
255 | | - invocationBuilder.header("X-Source", xSource.toLowerCase()); |
256 | | - } |
257 | 241 |
|
258 | 242 | if (httpMethod == HttpMethod.GET) { |
259 | 243 | futureResponse = invocationBuilder.async().get(); |
|
0 commit comments