Skip to content

Commit c9f9f26

Browse files
author
pfeatherstone
committed
oops
1 parent af4d8b9 commit c9f9f26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/http_async.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ namespace http
912912
{
913913
uint16_t len{0};
914914
memcpy(&len, &buf[offset+off], 2);
915-
paylen = be16toh(len);
915+
paylen = host_to_b16(len);
916916
off += 2;
917917
}
918918

@@ -921,7 +921,7 @@ namespace http
921921
{
922922
uint64_t len{0};
923923
memcpy(&len, &buf[offset+off], 8);
924-
paylen = be64toh(len);
924+
paylen = host_to_b64(len);
925925
off += 8;
926926
}
927927

0 commit comments

Comments
 (0)