diff --git a/src/init.c b/src/init.c index 45f788f..92b9824 100644 --- a/src/init.c +++ b/src/init.c @@ -160,12 +160,6 @@ init_config( void ) "Mozilla/5.0 (%s) Siege/%s", PLATFORM, version_string ); - if (strlen(my.conttype) < 1) - snprintf( - my.conttype, sizeof(my.conttype), - "application/x-www-form-urlencoded" - ); - if (strlen(my.encoding) < 1) snprintf( my.encoding, sizeof(my.encoding), "*" diff --git a/src/load.c b/src/load.c index 506633d..d268751 100644 --- a/src/load.c +++ b/src/load.c @@ -294,7 +294,11 @@ load_file(URL U, char *file) fclose(fp); if (len > 0) { - url_set_conttype(U, get_content_type(filename)); + if (strlen(my.conttype) < 1) { + url_set_conttype(U, my.conttype); + } else { + url_set_conttype(U, get_content_type(filename)); + } url_set_postdata(U, buf, len); }