on master help sign in
Fix typos
commit1e2cc04d0346fc179f80fd0572a35f87232b5b64 authorIan Duncan <ian@iankduncan.com> dateFri 19 Apr 2019, 15:32 (7 years ago) parentfd62edc
2 files changed+3−3
warp/Network/Wai/Handler/Warp/HTTP2/Receiver.hs+1−1 warp/test/ResponseHeaderSpec.hs+2−2
warp/Network/Wai/Handler/Warp/HTTP2/Receiver.hs+1−1
@@ -171,7 +171,7 @@ frameReceiver ctx mkreq recvN = loop 0 `E.catch` sendGoaway
171171 E.throwIO $ ConnectionError ProtocolError "stream identifier must not decrease"
172172 else do -- consider the stream idle
173173 when (ftyp `notElem` [FrameHeaders,FramePriority]) $
174− E.throwIO $ ConnectionError ProtocolError $ "this frame is not allowed in an idel stream: " `BS.append` C8.pack (show ftyp)
174+ E.throwIO $ ConnectionError ProtocolError $ "this frame is not allowed in an idle stream: " `BS.append` C8.pack (show ftyp)
175175 when (ftyp == FrameHeaders) $ do
176176 writeIORef clientStreamId streamId
177177 cnt <- readIORef concurrency
warp/test/ResponseHeaderSpec.hs+2−2
@@ -71,11 +71,11 @@ spec = do
7171headers :: H.ResponseHeaders
7272headers = [
7373 ("Date", "Mon, 13 Aug 2012 04:22:55 GMT")
74− , ("Content-Lenght", "151")
74+ , ("Content-Length", "151")
7575 , ("Server", "Mighttpd/2.5.8")
7676 , ("Last-Modified", "Fri, 22 Jun 2012 01:18:08 GMT")
7777 , ("Content-Type", "text/html")
7878 ]
7979
8080composedHeader :: ByteString
81−composedHeader = "HTTP/1.1 200 OK\r\nDate: Mon, 13 Aug 2012 04:22:55 GMT\r\nContent-Lenght: 151\r\nServer: Mighttpd/2.5.8\r\nLast-Modified: Fri, 22 Jun 2012 01:18:08 GMT\r\nContent-Type: text/html\r\n\r\n"
81+composedHeader = "HTTP/1.1 200 OK\r\nDate: Mon, 13 Aug 2012 04:22:55 GMT\r\nContent-Length: 151\r\nServer: Mighttpd/2.5.8\r\nLast-Modified: Fri, 22 Jun 2012 01:18:08 GMT\r\nContent-Type: text/html\r\n\r\n"