src/agent/Shared/ApiServerUtils.h in passenger-6.0.20 vs src/agent/Shared/ApiServerUtils.h in passenger-6.0.23

- old
+ new

@@ -65,10 +65,11 @@ #include <modp_b64.h> #include <StaticString.h> #include <Exceptions.h> #include <DataStructures/LString.h> #include <DataStructures/StringKeyTable.h> +#include <ServerKit/llhttp.h> #include <ServerKit/Server.h> #include <ServerKit/HeaderTable.h> #include <LoggingKit/LoggingKit.h> #include <LoggingKit/Context.h> #include <Utils.h> @@ -283,11 +284,11 @@ Server *server; Client *client; Request *req; string address; - http_method method; + llhttp_method_t method; string uri; StringKeyTable<string> headers; boost::function<void (ApiServerInternalHttpResponse<Server, Client, Request>)> callback; unsigned long long timeout; @@ -373,10 +374,10 @@ try { FileDescriptor conn(connectToServer(req.address, NULL, 0), __FILE__, __LINE__); BufferedIO io(conn); string header; - header.append(http_method_str(req.method)); + header.append(llhttp_method_name(req.method)); header.append(" ", 1); header.append(req.uri); header.append(" HTTP/1.1\r\n"); StringKeyTable<string>::ConstIterator it(req.headers);