Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bpapillon committed Feb 5, 2025
1 parent 671515a commit 61c1dfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/schematic/api/Schematic.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private static ClientOptions buildClientOptions(String apiKey, Builder builder)
String basePath = builder.basePath != null ? builder.basePath : "https://api.schematichq.com";
return ClientOptions.builder()
.environment(Environment.custom(basePath))
.addHeader("Authorization", "Bearer " + apiKey)
.addHeader("X-Schematic-Api-Key", apiKey)
.addHeader("Content-Type", "application/json")
.build();
}
Expand Down
1 change: 1 addition & 0 deletions src/test/java/com/schematic/api/TestSchematic.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ void checkFlag_CachesResultIfNotCached() {

CheckFlagResponse response = CheckFlagResponse.builder()
.data(CheckFlagResponseData.builder()
.flag("test_flag")
.reason("test_reason")
.value(true)
.build())
Expand Down

0 comments on commit 61c1dfc

Please sign in to comment.