diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-10-13 07:33:38 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-10-13 07:33:38 +0000 |
commit | 2224b7cfa5a1adb17fcec0e14fa3c5e507446291 (patch) | |
tree | b56618189d4b8d9ce09c0b1619ab7d93f6d52003 /protocols/FacebookRM | |
parent | 3a08c1d0ba1fe146bd53bdfd5b47e08db745cd5b (diff) |
Facebook: use NLHRF_DUMPASTEXT in debug mode
git-svn-id: http://svn.miranda-ng.org/main/trunk@6474 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index e2082b373a..7bbac28fab 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -37,8 +37,14 @@ http::response facebook_client::flap(RequestType request_type, std::string* requ url.append(choose_action(request_type, request_data, request_get_data));
nlhr.szUrl = (char*)url.c_str();
- nlhr.flags = NLHRF_HTTP11 | NLHRF_NODUMP | choose_security_level(request_type);
+ nlhr.flags = NLHRF_HTTP11 | choose_security_level(request_type);
nlhr.headers = get_request_headers(nlhr.requestType, &nlhr.headersCount);
+
+ #ifdef _DEBUG
+ nlhr.flags |= NLHRF_DUMPASTEXT;
+ #else
+ nlhr.flags |= NLHRF_NODUMP;
+ #endif
switch (request_type)
{
|