mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2025-10-16 11:45:37 +00:00
fixed #47
Added static string on top Signed-off-by: france193 <france193.htc@gmail.com>
This commit is contained in:
parent
41322956ca
commit
e21cd1e860
@ -29,6 +29,10 @@ import java.util.concurrent.TimeUnit;
|
||||
*/
|
||||
public class IotaAPICore {
|
||||
|
||||
// version header
|
||||
private static final String X_IOTA_API_VERSION_HEADER_NAME = "X-IOTA-API-Version";
|
||||
private static final String X_IOTA_API_VERSION_HEADER_VALUE = "1";
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(IotaAPICore.class);
|
||||
|
||||
private IotaAPIService service;
|
||||
@ -106,7 +110,7 @@ public class IotaAPICore {
|
||||
Request newRequest;
|
||||
|
||||
newRequest = request.newBuilder()
|
||||
.addHeader("X-IOTA-API-VERSION", "1.4.1")
|
||||
.addHeader(X_IOTA_API_VERSION_HEADER_NAME, X_IOTA_API_VERSION_HEADER_VALUE)
|
||||
.build();
|
||||
|
||||
return chain.proceed(newRequest);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user