From 2224b7cfa5a1adb17fcec0e14fa3c5e507446291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 13 Oct 2013 07:33:38 +0000 Subject: Facebook: use NLHRF_DUMPASTEXT in debug mode git-svn-id: http://svn.miranda-ng.org/main/trunk@6474 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/communication.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3