projects
/
platform
/
upstream
/
openconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed3c24b
)
Print non-200 HTTP responses even without -v
author
David Woodhouse
<David.Woodhouse@intel.com>
Sun, 4 Apr 2010 22:58:00 +0000
(23:58 +0100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Sun, 4 Apr 2010 22:58:00 +0000
(23:58 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
http.c
patch
|
blob
|
history
diff --git
a/http.c
b/http.c
index
f660e20
..
32799b5
100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-124,7
+124,8
@@
static int process_http_response(struct openconnect_info *vpninfo, int *result,
return -EINVAL;
}
- vpninfo->progress(vpninfo, PRG_TRACE, "Got HTTP response: %s\n", buf);
+ vpninfo->progress(vpninfo, (*result==200)?PRG_TRACE:PRG_INFO,
+ "Got HTTP response: %s\n", buf);
/* Eat headers... */
while ((i = openconnect_SSL_gets(vpninfo->https_ssl, buf, sizeof(buf)))) {