Skip to content

switch return code of OPTIONS request method between 200 and 204 depending on cmake option - #951

Merged
gittiver merged 1 commit into
masterfrom
939-feature-request-customize-options-return-code
Feb 7, 2025
Merged

gittiver merged 1 commit into
masterfrom
939-feature-request-customize-options-return-code

Conversation

@gittiver

Copy link
Copy Markdown
Member

…itched between 200 (OK) and 204 (no content)

@gittiver gittiver linked an issue Nov 26, 2024 that may be closed by this pull request
@gittiver gittiver self-assigned this Nov 26, 2024
@gittiver
gittiver marked this pull request as draft November 26, 2024 10:40
@gittiver
gittiver force-pushed the 939-feature-request-customize-options-return-code branch 3 times, most recently from b112f2c to 29fb874 Compare November 29, 2024 21:04
@gittiver
gittiver marked this pull request as ready for review November 29, 2024 21:06
@gittiver

Copy link
Copy Markdown
Member Author

set CROW_RETURNS_OK_ON_HTTP_OPTIONS_REQUEST for returning 200 instead of 204

@gittiver
gittiver force-pushed the 939-feature-request-customize-options-return-code branch from 29fb874 to ab321a3 Compare December 1, 2024 11:16
@gittiver
gittiver force-pushed the 939-feature-request-customize-options-return-code branch 3 times, most recently from 4f66ac0 to 52db412 Compare January 1, 2025 12:23
@gittiver
gittiver force-pushed the 939-feature-request-customize-options-return-code branch 2 times, most recently from 3fa5764 to e70cd08 Compare January 7, 2025 21:23
@gittiver
gittiver force-pushed the 939-feature-request-customize-options-return-code branch from e70cd08 to 2ea1957 Compare January 15, 2025 07:20
@gittiver
gittiver force-pushed the 939-feature-request-customize-options-return-code branch from 2ea1957 to b9666aa Compare January 24, 2025 15:12
@mrozigor

Copy link
Copy Markdown
Member

Why do this via Cmake? Wouldn't it be better to change it from the code and leave it to the user?

@gittiver

Copy link
Copy Markdown
Member Author

Why do this via Cmake? Wouldn't it be better to change it from the code and leave it to the user?

Its for OPTION Requests, there is no handler where you can change it in code.

@gittiver
gittiver force-pushed the 939-feature-request-customize-options-return-code branch 2 times, most recently from 5f52201 to 4338e29 Compare February 4, 2025 19:00
…itched between 200 (OK) and 204 (no content)
@gittiver
gittiver force-pushed the 939-feature-request-customize-options-return-code branch from 4338e29 to 1f1b7fe Compare February 5, 2025 11:04
@gittiver
gittiver merged commit e839868 into master Feb 7, 2025
@gittiver
gittiver deleted the 939-feature-request-customize-options-return-code branch June 16, 2025 15:45
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.

Feature request: Customize OPTIONS return code

2 participants