diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-06-12 23:47:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-06-22 11:04:36 +0200 |
commit | 755982eda1ed0726f751f0fa38e14580e3766ab6 (patch) | |
tree | 9e529d4f8d3eeb75bb1c9ed7df23298af8c665f6 | |
parent | a13c54699e53e1174d575991ddfb848d6a8a01d9 (diff) |
Revert "rhbz#678440: Always include User-Agent to avoid 403 from picky servers"
This reverts commit 8dfbb8793407a103ef8c5fa109f0fdf15af9262b.
(cherry picked from commit a7a4f705904e638f0196e4fd48075bc005d0d43b)
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | ucb/source/ucp/webdav/DAVResourceAccess.cxx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.cxx b/ucb/source/ucp/webdav/DAVResourceAccess.cxx index e669245bff99..11b52518638e 100644 --- a/ucb/source/ucp/webdav/DAVResourceAccess.cxx +++ b/ucb/source/ucp/webdav/DAVResourceAccess.cxx @@ -1151,21 +1151,6 @@ void DAVResourceAccess::getUserRequestHeaders( } } } - - // Make sure a User-Agent header is always included, as at least - // en.wikipedia.org:80 forces back 403 "Scripts should use an informative - // User-Agent string with contact information, or they may be IP-blocked - // without notice" otherwise: - for ( DAVRequestHeaders::iterator i(rRequestHeaders.begin()); - i != rRequestHeaders.end(); ++i ) - { - if ( i->first.equalsIgnoreAsciiCase( "User-Agent" ) ) - { - return; - } - } - rRequestHeaders.push_back( - DAVRequestHeader( "User-Agent", "LibreOffice" ) ); } //========================================================================= |