diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/MHttpRequest.cpp | 9 | ||||
-rw-r--r-- | src/mir_app/src/mir_app.def | 1 | ||||
-rw-r--r-- | src/mir_app/src/mir_app64.def | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/mir_app/src/MHttpRequest.cpp b/src/mir_app/src/MHttpRequest.cpp index b44da4c750..a95678e5e7 100644 --- a/src/mir_app/src/MHttpRequest.cpp +++ b/src/mir_app/src/MHttpRequest.cpp @@ -63,6 +63,15 @@ MIR_APP_DLL(MHttpRequest*) operator<<(MHttpRequest *pReq, const INT64_PARAM &par return pReq;
}
+MIR_APP_DLL(MHttpRequest *) operator<<(MHttpRequest *pReq, const BOOL_PARAM ¶m)
+{
+ CMStringA &s = pReq->m_szParam;
+ if (!s.IsEmpty())
+ s.AppendChar('&');
+ s.AppendFormat("%s=%s", param.szName, param.bValue ? "true" : "false");
+ return pReq;
+}
+
MIR_APP_DLL(MHttpRequest*) operator<<(MHttpRequest *pReq, const CHAR_PARAM ¶m)
{
CMStringA &s = pReq->m_szParam;
diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index 253c54a094..db67abbdcf 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -1003,3 +1003,4 @@ Proto_CanDeleteHistory @1118 NONAME ?data@JsonReply@@QBEAAVJSONNode@@XZ @1134 NONAME
?error@JsonReply@@QBEHXZ @1135 NONAME
??BJsonReply@@QBE_NXZ @1136 NONAME
+??6@YGPAUMHttpRequest@@PAU0@ABUBOOL_PARAM@@@Z @1137 NONAME
diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index 61117b7741..4b314b0a54 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -1003,3 +1003,4 @@ Proto_CanDeleteHistory @1118 NONAME ?data@JsonReply@@QEBAAEAVJSONNode@@XZ @1134 NONAME
?error@JsonReply@@QEBAHXZ @1135 NONAME
??BJsonReply@@QEBA_NXZ @1136 NONAME
+??6@YAPEAUMHttpRequest@@PEAU0@AEBUBOOL_PARAM@@@Z @1137 NONAME
|