summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/m_netlib.h3
-rw-r--r--src/mir_app/src/netlibhttp.cpp1
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;