Skip to content

Commit

Permalink
examples/curlx: Fix code style
Browse files Browse the repository at this point in the history
- Add braces around multi-line if statement.

Closes #2096
  • Loading branch information
fmmedeiros authored and jay committed Nov 18, 2017
1 parent 715f1f5 commit 297516e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/examples/curlx.c
Expand Up @@ -537,14 +537,15 @@ int main(int argc, char **argv)
res = curl_easy_perform(p.curl));
{
int result = curl_easy_getinfo(p.curl, CURLINFO_CONTENT_TYPE, &response);
if(mimetypeaccept && p.verbose)
if(mimetypeaccept && p.verbose) {
if(!strcmp(mimetypeaccept, response))
BIO_printf(p.errorbio, "the response has a correct mimetype : %s\n",
response);
else
BIO_printf(p.errorbio, "the response doesn\'t have an acceptable "
"mime type, it is %s instead of %s\n",
response, mimetypeaccept);
}
}

/*** code d'erreur si accept mime ***, egalement code return HTTP != 200 ***/
Expand Down

0 comments on commit 297516e

Please sign in to comment.