#include <fstream>
#include <stdexcept>
#include <boost/lexical_cast.hpp>
-#include <boost/scoped_ptr.hpp>
#include <xmltooling/XMLToolingConfig.h>
#include <xmltooling/util/NDC.h>
#include <xmltooling/util/Threads.h>
Request* m_rq;
ShibTargetNSAPI(pblock* pb, ::Session* sn, Request* rq)
- : AbstractSPRequest(SHIBSP_LOGCAT".NSAPI"),
+ : AbstractSPRequest(SHIBSP_LOGCAT ".NSAPI"),
m_gotBody(false), m_firsttime(true), m_security_active(false), m_server_portnum(0), m_pb(pb), m_sn(sn), m_rq(rq) {
// To determine whether SSL is active or not, we're supposed to rely
}
void setResponseHeader(const char* name, const char* value) {
HTTPResponse::setResponseHeader(name, value);
- pblock_nvinsert(name, value, m_rq->srvhdrs);
+ if (name) {
+ pblock_nvinsert(name, value, m_rq->srvhdrs);
+ }
}
long sendResponse(istream& in, long status) {