Added windows support. Updated build system.
CMake build system builds as a library, not an executable now. Windows is now supported and should work fine.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
//
|
||||
|
||||
#include <iostream>
|
||||
#include "HttpResponse.h"
|
||||
#include "frnetlib/HttpResponse.h"
|
||||
|
||||
namespace fr
|
||||
{
|
||||
@@ -70,7 +70,7 @@ namespace fr
|
||||
|
||||
//Add in required headers if they're missing
|
||||
if(headers.find("Connection") == headers.end())
|
||||
response += "Connection: close\r\n";
|
||||
response += "Connection: close_socket\r\n";
|
||||
if(headers.find("Content-type") == headers.end())
|
||||
response += "Content-type: text/html\r\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user