Update submodules about String::SetString/SetInstance

This commit is contained in:
hyzboy 2024-12-24 22:27:54 +08:00
parent 29c88265d4
commit 1cfe60d239
2 changed files with 4 additions and 4 deletions

View File

@ -127,7 +127,7 @@ namespace hgl
if(!offset) if(!offset)
return; return;
response_info.SetString(http_header,offset-http_header); response_info.fromString(http_header,offset-http_header);
char *first=strchr(http_header,' '); char *first=strchr(http_header,' ');
@ -150,14 +150,14 @@ namespace hgl
AnsiString key; AnsiString key;
AnsiString value; AnsiString value;
key.SetString(first,second-first); key.fromString(first,second-first);
first=second+2; first=second+2;
second=strstr(first,http_header_size-(first-http_header),HTTP_HEADER_SPLITE,HTTP_HEADER_SPLITE_SIZE); second=strstr(first,http_header_size-(first-http_header),HTTP_HEADER_SPLITE,HTTP_HEADER_SPLITE_SIZE);
if(!second)break; if(!second)break;
value.SetString(first,second-first); value.fromString(first,second-first);
offset=second; offset=second;
response_list.CreateStringAttrib(key,value); response_list.CreateStringAttrib(key,value);

View File

@ -50,7 +50,7 @@ namespace hgl
end=protocol; end=protocol;
while(*end!='\r')++end; while(*end!='\r')++end;
sec_websocket_protocol.SetString(protocol,end-protocol); sec_websocket_protocol.fromString(protocol,end-protocol);
} }
} }