Commit a41fd2c4 authored by sfalken's avatar sfalken

2006-06-03 Steve Falkenburg <sfalken@apple.com>

        Reviewed by hyatt.

        Don't send empty referrers.  Fixes image load fail on Spinneret default content.

        * platform/win/TransferJobWin.cpp:
        (WebCore::TransferJob::start):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 31459a5c
2006-06-03 Steve Falkenburg <sfalken@apple.com>
Reviewed by hyatt.
Don't send empty referrers. Fixes image load fail on Spinneret default content.
* platform/win/TransferJobWin.cpp:
(WebCore::TransferJob::start):
2006-06-02 Adele Peterson <adele@apple.com>
Reviewed by Darin.
......
......@@ -290,8 +290,9 @@ bool TransferJob::start(DocLoader* docLoader)
// For form posting, we can't use InternetOpenURL. We have to use InternetConnect followed by
// HttpSendRequest.
HINTERNET urlHandle;
DeprecatedString referrer = docLoader->frame()->referrer();
if (method() == "POST") {
d->m_postReferrer = docLoader->frame()->referrer();
d->m_postReferrer = referrer;
DeprecatedString host = d->URL.host();
host += "\0";
urlHandle = InternetConnectA(internetHandle, host.ascii(), d->URL.port(), 0, 0,
......@@ -301,9 +302,9 @@ bool TransferJob::start(DocLoader* docLoader)
int fragmentIndex = urlStr.find('#');
if (fragmentIndex != -1)
urlStr = urlStr.left(fragmentIndex);
DeprecatedString headers("Referer: ");
headers += docLoader->frame()->referrer();
headers += "\n";
DeprecatedString headers;
if (!referrer.isEmpty())
headers += DeprecatedString("Referer: ") + referrer + "\r\n";
urlHandle = InternetOpenUrlA(internetHandle, urlStr.ascii(), headers.ascii(), headers.length(),
INTERNET_FLAG_KEEP_CONNECTION, (DWORD_PTR)d->m_jobId);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment