Add HTTP PATCH request

This commit is contained in:
2023-06-12 18:56:23 +02:00
parent 4aba620039
commit a814dea032
2 changed files with 5 additions and 1 deletions

View File

@@ -135,7 +135,9 @@ public:
/// Diagnostic trace
TRACE = 1 << 6,
/// Proxy connection
CONNECT = 1 << 7
CONNECT = 1 << 7,
/// Store partial resource
PATCH = 1 << 8
};
/**

View File

@@ -125,6 +125,8 @@ bool Parser::parseRequestHeaders(const QByteArray &data, Socket::Method &method,
method = Socket::TRACE;
} else if (parts[0] == "CONNECT") {
method = Socket::CONNECT;
} else if (parts[0] == "PATCH") {
method = Socket::PATCH;
} else {
return false;
}