diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-06-12 23:47:54 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-06-12 23:47:54 +0200 |
commit | a7a4f705904e638f0196e4fd48075bc005d0d43b (patch) | |
tree | 9ab58449598207b041e840f5f664f35d936ad7e7 | |
parent | 8dfbb8793407a103ef8c5fa109f0fdf15af9262b (diff) |
Revert "rhbz#678440: Always include User-Agent to avoid 403 from picky servers"
This reverts commit 8dfbb8793407a103ef8c5fa109f0fdf15af9262b.
-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" ) ); } //========================================================================= |