diff options
author | LaserEyess <lasereyess@lasereyess.net> | 2018-11-11 14:37:13 -0500 |
---|---|---|
committer | LaserEyess <nobody@nobody.com> | 2018-11-11 18:59:01 -0500 |
commit | cc8b8db3b7493324d6a436a31c7db78bb0f99ad3 (patch) | |
tree | ed50bd052e553c35e9760650e88684b27e4aa1e4 | |
parent | cc02e478dd5fb15c1a59db3b9cce35a336cef4ba (diff) |
Parse headers case insensitively
-rw-r--r-- | src/trg-client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/trg-client.c b/src/trg-client.c index 6b47d7a..9e92368 100644 --- a/src/trg-client.c +++ b/src/trg-client.c @@ -478,7 +478,8 @@ header_callback(void *ptr, size_t size, size_t nmemb, void *data) TrgClient *tc = TRG_CLIENT(data); gchar *session_id; - if (g_str_has_prefix(header, X_TRANSMISSION_SESSION_ID_HEADER_PREFIX)) { + if (g_ascii_strncasecmp(header, X_TRANSMISSION_SESSION_ID_HEADER_PREFIX, + strlen(X_TRANSMISSION_SESSION_ID_HEADER_PREFIX)) == 0) { char *nl; session_id = g_strdup(header); |