[GB.XML.RPC]

BUG: miniServer would give an out-of-bound if content-length is wrong


git-svn-id: svn://localhost/gambas/trunk@5802 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Alexander Kuiper 2013-08-16 16:04:28 +00:00
parent 7181a4f6ba
commit 040cd397fa

View File

@ -345,13 +345,7 @@ Public Sub Socket_Read()
Wait 0.005
Next
' Content-Length and data size doesn't match
If cLen <> hLen[Bucle] Then
hError(hS, "413 Request Entity Too Large")
RemoveSocket(hS)
End If
If cLen = hLen[Bucle] Then
If cLen = hLen[Bucle] Then
ProcessQuery(hS, hBuffer[Bucle])
Return
Else