mirror of
https://github.com/Doczom/simple-httpd.git
synced 2025-09-21 02:50:09 +02:00
Update to 0.2.5 version
- Added support for uploading a configuration file over a long path - Added support for special uri paths (using the "*" symbol) in the configuration for groups of similar uri paths - Added the function of reading the contents of an http request - Changed the format of the uri address in the configuration file - Added a request redirection module - Added a module for blocking access to files by url path - Updated documentation - Updated module examples
This commit is contained in:
18
parser.inc
18
parser.inc
@@ -240,7 +240,15 @@ parse_headers:
|
||||
jnz @b
|
||||
|
||||
mov byte[ecx], 0 ; \0
|
||||
inc ecx
|
||||
@@:
|
||||
inc ecx
|
||||
|
||||
cmp ecx, eax
|
||||
jae .error_exit
|
||||
|
||||
cmp byte[ecx], ' '
|
||||
je @b
|
||||
|
||||
; save pointer to value
|
||||
mov dword[BASE_ARRAY_HEADERS + (edx-1)*8 + 4], ecx
|
||||
@@:
|
||||
@@ -252,6 +260,11 @@ parse_headers:
|
||||
cmp word[ecx - 1], 0x0A0D
|
||||
jnz @b
|
||||
|
||||
cmp byte[ecx + 1], ' ' ; SP
|
||||
je @b
|
||||
cmp byte[ecx + 1], 0x09 ; HT
|
||||
je @b
|
||||
|
||||
mov byte[ecx - 1], 0
|
||||
inc ecx ; set offset on new string
|
||||
jmp .new_str
|
||||
@@ -328,6 +341,9 @@ parse_http_query:
|
||||
je @f
|
||||
|
||||
mov [esi + CONNECT_DATA.message_body], ecx
|
||||
mov eax, [esi + CONNECT_DATA.end_buffer_request]
|
||||
sub eax, ecx
|
||||
mov [esi + CONNECT_DATA.message_body_len], eax
|
||||
@@:
|
||||
mov eax, esi
|
||||
ret
|
||||
|
Reference in New Issue
Block a user