mirror of
https://github.com/curl/curl.git
synced 2026-07-27 17:28:56 +03:00
strcase: make the tool use curl_str[n]equal instead
As they are after all part of the public API. Saves space and reduces complexity. Remove the strcase defines from the curlx_ family. Suggested-by: Dan Fandrich Idea: https://curl.haxx.se/mail/lib-2016-10/0136.html
This commit is contained in:
parent
1071680946
commit
95bd2b3e7f
8 changed files with 27 additions and 31 deletions
|
|
@ -104,11 +104,11 @@ void customrequest_helper(struct OperationConfig *config, HttpReq req,
|
|||
|
||||
if(!method)
|
||||
;
|
||||
else if(curlx_strcasecompare(method, dflt[req])) {
|
||||
else if(curl_strequal(method, dflt[req])) {
|
||||
notef(config->global, "Unnecessary use of -X or --request, %s is already "
|
||||
"inferred.\n", dflt[req]);
|
||||
}
|
||||
else if(curlx_strcasecompare(method, "head")) {
|
||||
else if(curl_strequal(method, "head")) {
|
||||
warnf(config->global,
|
||||
"Setting custom HTTP method to HEAD with -X/--request may not work "
|
||||
"the way you want. Consider using -I/--head instead.\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue