msharee9 commented on a change in pull request #775:
URL: https://github.com/apache/nifi-minifi-cpp/pull/775#discussion_r419489924
##########
File path: extensions/http-curl/tests/HTTPHandlers.h
##########
@@ -445,4 +445,49 @@ class HeartbeatHandler : public CivetHandler {
bool isSecure;
};
+class InvokeHTTPResponseOKHandler : public CivetHandler {
+public:
+ bool handlePost(CivetServer *, struct mg_connection *conn) {
+ std::stringstream headers;
+ headers << "HTTP/1.1 201 OK\r\nContent-Type: text/plain\r\nContent-Length: 0\r\nConnection:
close\r\n\r\n";
Review comment:
Absolutely. stringstream is unnecessary here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
|