[cpp-xmltooling] branch master updated: SSPCPP-593 - Unable to clear/overwrite response headers
Scott Cantor
cantor.2 at osu.edu
Mon Mar 26 13:37:33 EDT 2018
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository cpp-xmltooling.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=b2e25ce84c931919c89d951af869d25b4f6deaa3
The following commit(s) were added to refs/heads/master by this push:
new b2e25ce SSPCPP-593 - Unable to clear/overwrite response headers
b2e25ce is described below
commit b2e25ce84c931919c89d951af869d25b4f6deaa3
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Mar 26 13:37:05 2018 -0400
SSPCPP-593 - Unable to clear/overwrite response headers
https://issues.shibboleth.net/jira/browse/SSPCPP-593
---
xmltooling/io/HTTPResponse.cpp | 2 +-
xmltooling/io/HTTPResponse.h | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/xmltooling/io/HTTPResponse.cpp b/xmltooling/io/HTTPResponse.cpp
index 94c1aef..bff8599 100644
--- a/xmltooling/io/HTTPResponse.cpp
+++ b/xmltooling/io/HTTPResponse.cpp
@@ -93,7 +93,7 @@ void HTTPResponse::setCookie(const char* name, const char* value)
setResponseHeader("Set-Cookie", cookie.c_str());
}
-void HTTPResponse::setResponseHeader(const char* name, const char* value)
+void HTTPResponse::setResponseHeader(const char* name, const char* value, bool replace)
{
if (name) {
for (const char* ch=name; *ch; ++ch) {
diff --git a/xmltooling/io/HTTPResponse.h b/xmltooling/io/HTTPResponse.h
index 5a1b74a..3d6ee70 100644
--- a/xmltooling/io/HTTPResponse.h
+++ b/xmltooling/io/HTTPResponse.h
@@ -57,12 +57,13 @@ namespace xmltooling {
void setContentType(const char* type);
/**
- * Sets or clears a response header.
+ * Sets, adds, or clears a response header.
*
* @param name header name
* @param value value to set, or nullptr to clear
+ * @param replace true iff this should replace existing header(s)
*/
- virtual void setResponseHeader(const char* name, const char* value);
+ virtual void setResponseHeader(const char* name, const char* value, bool replace = false);
/**
* Sets a client cookie.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list