Skip to content
Snippets Groups Projects
  • Vladimir Davydov's avatar
    1cde49d4
    httpc: reset headers on redirect · 1cde49d4
    Vladimir Davydov authored
    When a request is redirected, old headers are of no use anymore and
    should be dropped. We can detect a redirect by checking the value of
    CURLINFO_REDIRECT_COUNT.
    
    Note about the test: we change the redirect reply to 'redirecting...',
    so that its length differs from 'hello world'.
    
    Close #6101
    
    NO_DOC=bug fix
    1cde49d4
    History
    httpc: reset headers on redirect
    Vladimir Davydov authored
    When a request is redirected, old headers are of no use anymore and
    should be dropped. We can detect a redirect by checking the value of
    CURLINFO_REDIRECT_COUNT.
    
    Note about the test: we change the redirect reply to 'redirecting...',
    so that its length differs from 'hello world'.
    
    Close #6101
    
    NO_DOC=bug fix