Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4161 → Rev 4160

/programs/develop/libraries/http/http.asm
607,7 → 607,7
pageaddr dd ?
endl
 
DEBUGF 1, "parsing URL: %s\n", [URL]
DEBUGF 1, "URL: %s\n", [URL]
 
; remove any leading protocol text
mov esi, [URL]
622,7 → 622,7
dec ecx
jnz .loop1
 
DEBUGF 1, "Invalid URL\n"
; URL invalid !
xor eax, eax
ret
 
636,6 → 636,7
sub esi, [URL] ; calculate total length of URL
mov [urlsize], esi
 
;;; FIXME: urls with no pageaddr are not parsed correctly!!
 
; now look for page delimiter - it's a '/' character
mov ecx, esi ; URL length
642,10 → 643,8
mov edi, [URL]
mov al, '/'
repne scasb
jne @f
dec edi ; return one char, '/' must be part of the pageaddr
inc ecx ;
@@:
push ecx edi ; remember the pointer and length of pageaddr
 
mov ecx, edi
663,7 → 662,7
xor al, al
stosb
 
mov [pageaddr], str_slash ; assume there is no pageaddr
mov [pageaddr], null_str ; assume there is no pageaddr
pop esi ecx
test ecx, ecx
jz .no_page
771,7 → 770,7
db '0123456789+/'
 
str_cl db 'content-length', 0
str_slash db '/', 0
null_str db 0
str_te db 'transfer-encoding', 0
 
include_debug_strings