summaryrefslogtreecommitdiffstats
path: root/src/core/transport/http/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/transport/http/common')
-rw-r--r--src/core/transport/http/common/http_header.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/transport/http/common/http_header.c b/src/core/transport/http/common/http_header.c
index bd461e3..e98bbf3 100644
--- a/src/core/transport/http/common/http_header.c
+++ b/src/core/transport/http/common/http_header.c
@@ -166,3 +166,18 @@ axis2_http_header_get_value(
{
return http_header->value;
}
+
+AXIS2_EXTERN void AXIS2_CALL
+axis2_http_header_set_value(
+ axis2_http_header_t * http_header,
+ const axutil_env_t * env,
+ const axis2_char_t *value)
+{
+ if(http_header->value)
+ {
+ AXIS2_FREE(env->allocator, http_header->value);
+ http_header->value = NULL;
+ }
+ http_header->value = (axis2_char_t *)axutil_strdup(env, value);
+}
+