+2014-03-04 Giuseppe Scrivano <gscrivan@redhat.com>
+
+ * http.c (modify_param_value, extract_param): Aesthetic change.
+
2014-02-14 Vladimír Pýcha <vpycha@gmail.com> (tiny change)
* http.c (parse_content_disposition, extract_param)
static void
modify_param_value (param_token *value, int encoding_type )
{
- if (RFC2231_ENCODING == encoding_type)
+ if (encoding_type == RFC2231_ENCODING)
{
const char *delim = memrchr (value->b, '\'', value->e - value->b);
if ( delim != NULL )
char separator, bool *is_url_encoded)
{
const char *p = *source;
+ int param_type;
if (is_url_encoded)
*is_url_encoded = false; /* initializing the out parameter */
}
*source = p;
- int param_type = modify_param_name(name);
- if (NOT_RFC2231 != param_type)
+ param_type = modify_param_name(name);
+ if (param_type != NOT_RFC2231)
{
- if (RFC2231_ENCODING == param_type && is_url_encoded)
+ if (param_type == RFC2231_ENCODING && is_url_encoded)
*is_url_encoded = true;
modify_param_value(value, param_type);
}