Changeset 29119 in webkit


Ignore:
Timestamp:
Jan 3, 2008 3:04:04 AM (16 years ago)
Author:
alp@webkit.org
Message:

2008-01-03 Luca Bruno <lethalman88@gmail.com>

Reviewed by Alp Toker.

Fix HTTP POST-based logins to sites like Facebook, GMail by ensuring
that the two POST methods don't conflict.

  • platform/network/curl/ResourceHandleManager.cpp: (WebCore::ResourceHandleManager::setupPOST):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r29116 r29119  
     12008-01-03  Luca Bruno  <lethalman88@gmail.com>
     2
     3        Reviewed by Alp Toker.
     4
     5        Fix HTTP POST-based logins to sites like Facebook, GMail by ensuring
     6        that the two POST methods don't conflict.
     7
     8        * platform/network/curl/ResourceHandleManager.cpp:
     9        (WebCore::ResourceHandleManager::setupPOST):
     10
    1112008-01-02  Darin Adler  <darin@apple.com>
    212
  • trunk/WebCore/platform/network/curl/ResourceHandleManager.cpp

    r29037 r29119  
    298298    ResourceHandleInternal* d = job->getInternal();
    299299
    300     curl_easy_setopt(d->m_handle, CURLOPT_POST, TRUE);
    301 
    302300    job->request().httpBody()->flatten(d->m_postBytes);
    303301    if (d->m_postBytes.size() != 0) {
     302        curl_easy_setopt(d->m_handle, CURLOPT_POST, TRUE);
    304303        curl_easy_setopt(d->m_handle, CURLOPT_POSTFIELDSIZE, d->m_postBytes.size());
    305304        curl_easy_setopt(d->m_handle, CURLOPT_POSTFIELDS, d->m_postBytes.data());
     
    331330    }
    332331
    333     curl_easy_setopt(d->m_handle, CURLOPT_HTTPPOST, post);
     332    if (post)
     333      curl_easy_setopt(d->m_handle, CURLOPT_HTTPPOST, post);
    334334}
    335335
Note: See TracChangeset for help on using the changeset viewer.