Hi maverick786us,
In your code snippet you are adding headers to the http_request object that already came into the listener. It sounds like instead you want them to be on the HTTP response, no? Construct an http_response object and call http_response::headers().add(...). Then you can reply to the request using http_request::reply(...).
Steve
In your code snippet you are adding headers to the http_request object that already came into the listener. It sounds like instead you want them to be on the HTTP response, no? Construct an http_response object and call http_response::headers().add(...). Then you can reply to the request using http_request::reply(...).
Steve