diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,15 @@
 Changelog
 =========
 
+Version 0.2.7.1
+---------------
+
+*November 28, 2020*
+
+<https://github.com/mstksg/advent-of-code-api/releases/tag/v0.2.7.1>
+
+*   Work with servant 0.17 and above.
+
 Version 0.2.7.0
 ---------------
 
diff --git a/advent-of-code-api.cabal b/advent-of-code-api.cabal
--- a/advent-of-code-api.cabal
+++ b/advent-of-code-api.cabal
@@ -1,13 +1,13 @@
 cabal-version: 1.12
 
--- This file has been generated from package.yaml by hpack version 0.31.2.
+-- This file has been generated from package.yaml by hpack version 0.34.2.
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: 9603fe2e4c2300c11c4f62de11e190053b3d67925bc185d13a30248d5f13406d
+-- hash: 42fe072e1e23c3a691ec787cf5e1118785d56470c1ec117048fc826c4e47609c
 
 name:           advent-of-code-api
-version:        0.2.7.0
+version:        0.2.7.1
 synopsis:       Advent of Code REST API bindings and servant API
 description:    Haskell bindings for Advent of Code REST API and a servant API.  Please use
                 responsibly! See README.md or "Advent" module for an introduction and
diff --git a/src/Advent.hs b/src/Advent.hs
--- a/src/Advent.hs
+++ b/src/Advent.hs
@@ -82,6 +82,7 @@
 import           Advent.Types
 import           Control.Concurrent.STM
 import           Control.Exception
+import           Control.Monad
 import           Control.Monad.Except
 import           Data.Kind
 import           Data.Map                (Map)
@@ -105,6 +106,7 @@
 import qualified Data.Text.Encoding      as T
 import qualified Data.Text.Lazy          as TL
 import qualified Data.Text.Lazy.Encoding as TL
+import qualified Servant.Client          as Servant
 import qualified System.IO.Unsafe        as Unsafe
 
 #if MIN_VERSION_base(4,11,0)
@@ -389,7 +391,8 @@
     t <- getCurrentTime
     v <- atomically . newTVar $ createCookieJar [c t]
     mgr <- newTlsManager
-    pure $ ClientEnv mgr aocBase (Just v)
+    pure $ (mkClientEnv mgr aocBase)
+        { Servant.cookieJar = Just v }
   where
     c t = Cookie
       { cookie_name             = "session"
