summaryrefslogtreecommitdiff
path: root/tools/libskrewt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libskrewt.c')
-rw-r--r--tools/libskrewt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libskrewt.c b/tools/libskrewt.c
index 37a9feb..39b241a 100644
--- a/tools/libskrewt.c
+++ b/tools/libskrewt.c
@@ -18,7 +18,7 @@ void parse_content(const string type_spec_line,
}
else {
rest = get_type.substr(where+1);
- get_type = get_type.substr(0,where);
+ get_type = toLower(get_type.substr(0,where));
}
where = get_type.find("/");
if (where == string::npos){
@@ -31,7 +31,7 @@ void parse_content(const string type_spec_line,
// now need to find boundary
string srch = "boundary=";
- where = rest.find(srch);
+ where = toLower(rest).find(srch);
if (where != string::npos) {
where += srch.length();
boundary = rest.substr(where);