{"id":5269,"date":"2020-07-28T16:03:49","date_gmt":"2020-07-28T08:03:49","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=5269"},"modified":"2020-07-28T16:03:49","modified_gmt":"2020-07-28T08:03:49","slug":"bug-delphi-system-net-httpclient-win-%e5%8d%95%e5%85%83%e7%9a%84%e4%b8%80%e5%a4%84bug","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=5269","title":{"rendered":"[Bug] Delphi System.Net.HttpClient.Win \u5355\u5143\u7684\u4e00\u5904Bug"},"content":{"rendered":"\n<p><strong>[\u95ee\u9898\u51fd\u6570]<\/strong><br>System.Net.HttpClient.Win.ReadHeader<br><strong>[\u5f71\u54cd\u7248\u672c]<\/strong><br>\u81ea\u6709\u8fd9\u4e2a\u5355\u5143\u5f00\u59cb\u523010.4\uff0c\u5305\u62ec\u6253\u5b8c\u6700\u65b0\u7684 patch3\u3002<br><strong>[\u95ee\u9898\u63cf\u8ff0]<\/strong><br>WinHttpQueryHeaders \u8fd4\u56de LSize \u5982\u679c\u7b49\u4e8e 2\uff0c\u5219 SetLength \u5f97\u5230\u7684\u7ed3\u679c\u662f\u5c06 Result \u8bbe\u7f6e\u5bf9\u5e94\u7684\u5b57\u7b26\u4e32\u7f13\u51b2\u533a\u88ab\u8bbe\u7f6e\u4e3a\u4e86\u7a7a\u6307\u9488\uff0c\u4ece\u800c\u5f15\u53d1\u95ee\u9898\u3002<br><strong>[\u89e3\u51b3\u65b9\u6cd5]<\/strong><br>1\u3001SetLength \u6b63\u5e38\u8c03\u7528\uff0c\u4f46\u68c0\u67e5 LSize \u662f\u5426\u5927\u4e8e2\uff0c\u5927\u4e8e2\u65f6\u4e0d\u5b9e\u9645\u4e8c\u6b21\u67e5\u8be2\u3002\u63a8\u8350\u8fd9\u79cd\u89e3\u51b3\u529e\u6cd5\u3002<br>2\u3001\u521b\u5efa\u4e00\u4e2a\u4e34\u65f6\u7684 TBytes \u7c7b\u578b\u7684\u53d8\u91cf\uff0c\u7136\u540e\u6309\u6b63\u5e38\u7a0b\u5e8f\u8d70\uff0c\u6700\u540e\u62f7\u8d1d\u76f8\u5173\u5185\u5bb9\u5230\u8fd4\u56de\u503c\u4e2d\uff08\u5b9e\u9645\u4e0a\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4e00\u822c\u662f\u7a7a\u5b57\u7b26\u4e32\u65f6\u8fd4\u56de\u8fd9\u79cd\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[\u95ee\u9898\u51fd\u6570]System.Net.Htt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,603],"tags":[36,450],"class_list":["post-5269","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-603","tag-bug","tag-delphi"],"views":3553,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5269"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5269\/revisions"}],"predecessor-version":[{"id":5270,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5269\/revisions\/5270"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}