diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-28 22:46:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-28 22:46:06 +0300 |
commit | cc050575f27ecc736364749d1c5f47a7e3cdc991 (patch) | |
tree | 0fc43d34d6094dc9fae21b2d8790d3ee15a7db52 | |
parent | 3e34adae711d9ddf79b4959143a696b6a403a522 (diff) |
new http request type: PATCH
-rw-r--r-- | include/m_netlib.h | 3 | ||||
-rw-r--r-- | src/mir_app/src/netlibhttp.cpp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/m_netlib.h b/include/m_netlib.h index 36d9d9aea5..9dd0a4aaaf 100644 --- a/include/m_netlib.h +++ b/include/m_netlib.h @@ -452,9 +452,10 @@ typedef struct { #define REQUEST_GET 1
#define REQUEST_POST 2
#define REQUEST_CONNECT 3
-#define REQUEST_HEAD 4 // new in 0.5.1
+#define REQUEST_HEAD 4
#define REQUEST_PUT 5
#define REQUEST_DELETE 6
+#define REQUEST_PATCH 7
#define NLHRF_MANUALHOST 0x00000001 // do not remove any host and/or protocol portion of szUrl before sending it
#define NLHRF_HTTP11 0x00000010 // use HTTP 1.1
diff --git a/src/mir_app/src/netlibhttp.cpp b/src/mir_app/src/netlibhttp.cpp index d229b1712b..adfc76c81f 100644 --- a/src/mir_app/src/netlibhttp.cpp +++ b/src/mir_app/src/netlibhttp.cpp @@ -401,6 +401,7 @@ INT_PTR NetlibHttpSendRequest(WPARAM wParam, LPARAM lParam) case REQUEST_HEAD: pszRequest = "HEAD"; break;
case REQUEST_PUT: pszRequest = "PUT"; break;
case REQUEST_DELETE: pszRequest = "DELETE"; break;
+ case REQUEST_PATCH: pszRequest = "PATCH"; break;
default:
SetLastError(ERROR_INVALID_PARAMETER);
return SOCKET_ERROR;
|