Skip to content

Commit

Permalink
remove duplicate accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
dylex committed Nov 15, 2023
1 parent cc50efd commit f6bd136
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ES.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import Data.Typeable (cast)
import qualified Data.Vector as V
import qualified Network.HTTP.Client.Conduit as HTTP hiding (httpSource)
import qualified Network.HTTP.Simple as HTTP
import Network.HTTP.Types.Header (hAcceptEncoding, hAccept, hContentType)
import Network.HTTP.Types.Header (hAcceptEncoding, hContentType)
import Network.HTTP.Types.Method (StdMethod(GET, PUT, POST), renderStdMethod)
import qualified Network.URI as URI
import System.IO (stderr)
Expand All @@ -81,7 +81,6 @@ initServer conf = do
return req
{ HTTP.requestHeaders =
[ (hAcceptEncoding, " ") -- disable gzip
, (hAccept, "application/json")
]
, HTTP.responseTimeout = HTTP.responseTimeoutNone
}
Expand Down

0 comments on commit f6bd136

Please sign in to comment.