diff --git a/HTTP.cpp b/HTTP.cpp
index 02b58f99..ef43d55f 100644
--- a/HTTP.cpp
+++ b/HTTP.cpp
@@ -7,6 +7,7 @@
 */
 
 #include "HTTP.h"
+#include <algorithm>
 
 namespace i2p {
 namespace http {