Skip to content

fix(requestconfig): normalize Windows OS header values#694

Open
fallintoplace wants to merge 1 commit into
openai:mainfrom
fallintoplace:fix/windows-os-header-normalization
Open

fix(requestconfig): normalize Windows OS header values#694
fallintoplace wants to merge 1 commit into
openai:mainfrom
fallintoplace:fix/windows-os-header-normalization

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Why

runtime.GOOS returns windows, but the request configuration matched window. Windows requests were therefore reported as Other:windows instead of Windows in the X-Stainless-OS header.

What changed

  • Extract OS normalization into a small normalizeOS helper.
  • Map windows to Windows while preserving the existing mappings for other platforms.
  • Add focused coverage for Windows, macOS, Linux, and unknown OS values.

Validation

  • go test ./internal/requestconfig

@fallintoplace fallintoplace requested a review from a team as a code owner June 26, 2026 21:52
@fallintoplace fallintoplace changed the title Normalize Windows value in X-Stainless-OS header fix(requestconfig): normalize Windows OS header values Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant