MXS-1220: Move header generation back to HttpResponse
The actual list of headers is not known when the request is first generated. This prevents the headers from being generated in admin.cc which handles things on a lower level. The moving of the header generation is done with the OPTIONS method in mind. This header needs to be generated inside the RootResource class which manages the navigation of the resources.
This commit is contained in:

committed by
Markus Mäkelä

parent
bc3cfe0221
commit
c17c451fb5
@ -19,8 +19,6 @@
|
||||
|
||||
#include <maxscale/thread.h>
|
||||
|
||||
using std::string;
|
||||
|
||||
class Client
|
||||
{
|
||||
public:
|
||||
@ -30,7 +28,7 @@ public:
|
||||
*
|
||||
* @param connection The connection handle for this client
|
||||
*/
|
||||
Client(struct MHD_Connection *connection):
|
||||
Client(MHD_Connection *connection):
|
||||
m_connection(connection)
|
||||
{
|
||||
}
|
||||
@ -52,11 +50,11 @@ public:
|
||||
*
|
||||
* @return MHD_YES on success, MHD_NO on error
|
||||
*/
|
||||
int process(string url, string method, const char* data, size_t *size);
|
||||
int process(std::string url, std::string method, const char* data, size_t *size);
|
||||
|
||||
private:
|
||||
struct MHD_Connection* m_connection; /**< Connection handle */
|
||||
string m_data; /**< Uploaded data */
|
||||
MHD_Connection* m_connection; /**< Connection handle */
|
||||
std::string m_data; /**< Uploaded data */
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user