From 3d9c89889f5746014f8980943aa9f64912a806fa Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Thu, 13 Mar 2014 15:16:57 +0400 Subject: [PATCH] Correct Content-Type header for gif images --- src/bitcoinrpc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 319407da..f73d9580 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1007,6 +1007,8 @@ void ServiceConnection(AcceptedConnection *conn) contentType = "text/css"; if( strURI.find(".png") != std::string::npos ) contentType = "image/png"; + if( strURI.find(".gif") != std::string::npos ) + contentType = "image/gif"; if( strURI.find(".ttf") != std::string::npos ) contentType = "application/x-font-ttf"; if( strURI.find(".jpg") != std::string::npos ||