You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ok...@apache.org on 2017/05/03 15:01:57 UTC
[trafficserver] branch master updated: convert int to boolean
This is an automated email from the ASF dual-hosted git repository.
oknet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new a23df66 convert int to boolean
a23df66 is described below
commit a23df669239bd466a3e22ca2c028ed5cd3630674
Author: scw00 <61...@qq.com>
AuthorDate: Wed May 3 19:37:25 2017 +0800
convert int to boolean
---
proxy/hdrs/MIME.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/proxy/hdrs/MIME.h b/proxy/hdrs/MIME.h
index babdbc1..dcf9041 100644
--- a/proxy/hdrs/MIME.h
+++ b/proxy/hdrs/MIME.h
@@ -758,10 +758,10 @@ MIMEField::name_set(HdrHeap *heap, MIMEHdrImpl *mh, const char *name, int length
if (hdrtoken_is_wks(name)) {
name_wks_idx = hdrtoken_wks_to_index(name);
- mime_field_name_set(heap, mh, this, name_wks_idx, name, length, 1);
+ mime_field_name_set(heap, mh, this, name_wks_idx, name, length, true);
} else {
int field_name_wks_idx = hdrtoken_tokenize(name, length, &name_wks);
- mime_field_name_set(heap, mh, this, field_name_wks_idx, (field_name_wks_idx == -1 ? name : name_wks), length, 1);
+ mime_field_name_set(heap, mh, this, field_name_wks_idx, (field_name_wks_idx == -1 ? name : name_wks), length, true);
}
}
@@ -827,7 +827,7 @@ MIMEField::value_get_comma_list(StrList *list) const
inline void
MIMEField::value_set(HdrHeap *heap, MIMEHdrImpl *mh, const char *value, int length)
{
- mime_field_value_set(heap, mh, this, value, length, 1);
+ mime_field_value_set(heap, mh, this, value, length, true);
}
inline void
@@ -1118,7 +1118,7 @@ MIMEHdr::field_create(const char *name, int length)
if (name) {
int field_name_wks_idx = hdrtoken_tokenize(name, length);
- mime_field_name_set(m_heap, m_mime, field, field_name_wks_idx, name, length, 1);
+ mime_field_name_set(m_heap, m_mime, field, field_name_wks_idx, name, length, true);
}
return (field);
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].