Skip to content

getinfo: Fix return code for unknown CURLINFO options#468

Closed
jay wants to merge 1 commit intocurl:masterfrom
jay:fix_curlinfo_unknown_option
Closed

getinfo: Fix return code for unknown CURLINFO options#468
jay wants to merge 1 commit intocurl:masterfrom
jay:fix_curlinfo_unknown_option

Conversation

@jay
Copy link
Member

@jay jay commented Oct 1, 2015

  • If a CURLINFO option is unknown return CURLE_UNKNOWN_OPTION.

Prior to this change CURLE_BAD_FUNCTION_ARGUMENT was returned on
unknown. That return value is contradicted by the CURLINFO option
documentation which specifies a return of CURLE_UNKNOWN_OPTION on
unknown.

- If a CURLINFO option is unknown return CURLE_UNKNOWN_OPTION.

Prior to this change CURLE_BAD_FUNCTION_ARGUMENT was returned on
unknown. That return value is contradicted by the CURLINFO option
documentation which specifies a return of CURLE_UNKNOWN_OPTION on
unknown.
@bagder
Copy link
Member

bagder commented Oct 4, 2015

+1

@jay
Copy link
Member Author

jay commented Oct 4, 2015

Thanks for the review, landed in 69ea579.

@jay jay closed this Oct 4, 2015
@jay jay deleted the fix_curlinfo_unknown_option branch October 4, 2015 21:38
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants