add support for preflight requ (cors)
This commit is contained in:
@@ -1597,6 +1597,19 @@ return false;
|
||||
}
|
||||
|
||||
|
||||
bool Request::AddHeader(const wchar_t * name, long value)
|
||||
{
|
||||
if( !out_headers.has_key(name) )
|
||||
{
|
||||
out_headers.add(name, value);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool Request::AddHeader(const std::wstring & name, const std::wstring & value)
|
||||
{
|
||||
if( !out_headers.has_key(name) )
|
||||
|
Reference in New Issue
Block a user