-
Notifications
You must be signed in to change notification settings - Fork 276
Use Cabal PackageInfo_warp instead of Paths_warp #1042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,7 @@ import qualified Network.HTTP.Types as H | |
| import qualified Network.HTTP.Types.Header as H | ||
| import Network.Wai | ||
| import Network.Wai.Internal | ||
| import qualified Paths_warp | ||
| import qualified PackageInfo_warp | ||
| import qualified System.TimeManager as T | ||
|
|
||
| import Network.Wai.Handler.Warp.Buffer (toBuilderBuffer) | ||
|
|
@@ -481,7 +481,7 @@ addDate getdate rspidxhdr hdrs = case rspidxhdr ! fromEnum ResDate of | |
|
|
||
| -- | The version of Warp. | ||
| warpVersion :: String | ||
| warpVersion = showVersion Paths_warp.version | ||
| warpVersion = showVersion PackageInfo_warp.version | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How did this end up in this module? Can you move this to |
||
|
|
||
| {-# INLINE addServer #-} | ||
| addServer | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,6 @@ module Network.Wai.Handler.Warp.ResponseHeader (composeHeader) where | |
| import qualified Data.ByteString as S | ||
| import Data.ByteString.Internal (create) | ||
| import qualified Data.CaseInsensitive as CI | ||
| import Data.List (foldl') | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I expect this to fail on any GHC < 9.10, so this might need CPP around it. |
||
| import Data.Word8 | ||
| import Foreign.Ptr | ||
| import GHC.Storable | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ import GHC.Prim (fork#) | |
| import qualified Network.HTTP.Types as H | ||
| import Network.Socket (SockAddr, Socket, accept) | ||
| import Network.Wai | ||
| import qualified Paths_warp | ||
| import qualified PackageInfo_warp | ||
| import System.IO (stderr) | ||
| import System.IO.Error (ioeGetErrorType) | ||
| import System.TimeManager | ||
|
|
@@ -206,7 +206,7 @@ defaultSettings = | |
| , settingsAccept = defaultAccept | ||
| , settingsNoParsePath = False | ||
| , settingsInstallShutdownHandler = const $ return () | ||
| , settingsServerName = C8.pack $ "Warp/" ++ showVersion Paths_warp.version | ||
| , settingsServerName = C8.pack $ "Warp/" ++ showVersion PackageInfo_warp.version | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After moving |
||
| , settingsMaximumBodyFlush = Just 8192 | ||
| , settingsProxyProtocol = ProxyProtocolNone | ||
| , settingsSlowlorisSize = 2048 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires an increase to the lower version bound of
http2(>= 5.2)