fixes SSL version check logic [backport] (#21324)
* fixed version check logic [backport] * add ciphersuites * debug nimble * fixes returns omission * finally * remove debug message * add ciphersuites --------- Co-authored-by: Araq <rumpf_a@web.de>
This commit is contained in:
parent
43b1b9d077
commit
17115cbc73
4 changed files with 8 additions and 8 deletions
|
|
@ -158,7 +158,7 @@ proc parseProtocol(protocol: string): tuple[orig: string, major, minor: int] =
|
|||
proc sendStatus(client: AsyncSocket, status: string): Future[void] =
|
||||
client.send("HTTP/1.1 " & status & "\c\L\c\L")
|
||||
|
||||
func hasChunkedEncoding(request: Request): bool =
|
||||
func hasChunkedEncoding(request: Request): bool =
|
||||
## Searches for a chunked transfer encoding
|
||||
const transferEncoding = "Transfer-Encoding"
|
||||
|
||||
|
|
@ -300,7 +300,7 @@ proc processRequest(
|
|||
while true:
|
||||
lineFut.mget.setLen(0)
|
||||
lineFut.clean()
|
||||
|
||||
|
||||
# The encoding format alternates between specifying a number of bytes to read
|
||||
# and the data to be read, of the previously specified size
|
||||
if sizeOrData mod 2 == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue