Added generic CORS header adder, now used in controller, HLS output and internal HTTP handler.

This commit is contained in:
Thulinma 2015-05-12 11:23:00 +02:00
parent 2845cbedcb
commit a3bf393bea
5 changed files with 20 additions and 5 deletions

View file

@ -21,6 +21,7 @@ namespace HTTP {
std::string getUrl();
void SetHeader(std::string i, std::string v);
void SetHeader(std::string i, long long v);
void setCORSHeaders();
void SetVar(std::string i, std::string v);
void SetBody(std::string s);
void SetBody(char * buffer, int len);