diff options
author | fmmedeiros <33770074+fmmedeiros@users.noreply.github.com> | 2017-11-18 15:06:35 -0300 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2017-11-18 14:04:33 -0500 |
commit | 297516e12cd0c59d33bea25420927aa314336d60 (patch) | |
tree | 1e3b9ce6f6a1803bb94256ea583c8ccd72644441 /docs/examples | |
parent | 715f1f53e0cf8ce5dc6f31f4ac6677f36e1927dc (diff) |
examples/curlx: Fix code style
- Add braces around multi-line if statement.
Closes https://github.com/curl/curl/pull/2096
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/curlx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/curlx.c b/docs/examples/curlx.c index c36beedfa..2aa10aa75 100644 --- a/docs/examples/curlx.c +++ b/docs/examples/curlx.c @@ -537,7 +537,7 @@ 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); @@ -545,6 +545,7 @@ int main(int argc, char **argv) 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 ***/ |