Skip to content

Commit

Permalink
Fix t.co, which uses 'location' instead of 'Location'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeage committed Dec 17, 2013
1 parent dd01d8a commit d80d9de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion expand.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ static void expand_shortlink_cb(PurpleUtilFetchUrlData * url_data, gpointer user
}

if (url_text && len) {
location = g_strstr_len(url_text, len, "\nLocation: ");
gchar *url_text_lower = g_ascii_strdown(url_text, -1);
location = g_strstr_len(url_text_lower, len, "\nlocation: ");
g_free(url_text_lower);
} else {
purple_debug_error(PLUGIN_ID, "Couldn't retreive! Error: %s\n", error_message);
}
Expand Down

0 comments on commit d80d9de

Please sign in to comment.