Bug 11099

Summary: HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
Product: WebKit Reporter: Darin Fisher (:fishd, Google) <fishd>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
minimal patch darin: review+

Description Darin Fisher (:fishd, Google) 2006-09-30 10:19:07 PDT
I've noticed that HttpSendRequestEx sometimes returns ERROR_HTTP_HEADER_NOT_FOUND, which I believe is caused by the lpcszHeader member of the INTERNET_BUFFERS struct being a garbage pointer.  Note: the CString object returned by headers.latin1() is a temporary, and ResourceLoaderWin is making the mistake of using it beyond its lifetime.

Patch coming up...
Comment 1 Darin Fisher (:fishd, Google) 2006-10-02 18:51:56 PDT
Created attachment 10875 [details]
minimal patch
Comment 2 Darin Adler 2006-10-02 19:36:05 PDT
Comment on attachment 10875 [details]
minimal patch

r=me
Comment 3 Mark Rowe (bdash) 2006-10-03 18:14:11 PDT
Landed in r16757.