Skip to content

Commit 1550492

Browse files
fix: set X-Glean-Include-Experimental header (not X-Glean-Experimental)
The XGleanHeadersHook read the correct includeExperimental option and X_GLEAN_INCLUDE_EXPERIMENTAL env var but emitted the wrong header name. The backend expects X-Glean-Include-Experimental. Correct the header constant (and javadoc); the test consumes the constant so it is covered automatically.
1 parent 8e74c97 commit 1550492

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/glean/api_client/glean_api_client/hooks/XGleanHeadersHook.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* <p>This hook sets the following headers based on SDK options or environment variables:
1818
* <ul>
1919
* <li>{@code X-Glean-Exclude-Deprecated-After} - Exclude API endpoints deprecated after this date</li>
20-
* <li>{@code X-Glean-Experimental} - Enable experimental API features</li>
20+
* <li>{@code X-Glean-Include-Experimental} - Enable experimental API features</li>
2121
* </ul>
2222
*
2323
* <p>Environment variables take precedence over SDK constructor options:
@@ -32,7 +32,7 @@ public final class XGleanHeadersHook {
3232
static final String ENV_INCLUDE_EXPERIMENTAL = "X_GLEAN_INCLUDE_EXPERIMENTAL";
3333

3434
static final String HEADER_EXCLUDE_DEPRECATED_AFTER = "X-Glean-Exclude-Deprecated-After";
35-
static final String HEADER_EXPERIMENTAL = "X-Glean-Experimental";
35+
static final String HEADER_EXPERIMENTAL = "X-Glean-Include-Experimental";
3636

3737
private XGleanHeadersHook() {
3838
// prevent instantiation

0 commit comments

Comments
 (0)