summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-25 19:32:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-25 19:45:27 +0000
commita493900e955b126d3393f376fef2ce6afbc1cdb6 (patch)
tree49d404ecf36094824e104c5e6a80d78d5a685b00 /ucb
parent71665247aa1855b7f9a78858febfd2d43eeebe94 (diff)
value returned from particular web server is not valid ascii
$1 = 0x1a24b90 "GET,HEAD,H\205\360),HEAD,POST,OPTIONS" from this url to a missing resource http://www.japan-net.ne.jp/%7Enagayama/image/14photo/omoide/0301fuji/01rot-s.jpg seen during soffice --headless --convert odt ooo26424-5.sxw Change-Id: If6429dc02ff42bae9372ae39cadf8b49f278f54d
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index 448630658ce5..7ba44b141657 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -872,8 +872,8 @@ void NeonSession::OPTIONS( const OUString & inPath,
while ( ( cursor = ne_response_header_iterate(
req, cursor, &name, &value ) ) != nullptr )
{
- OUString aHeaderName( OUString::createFromAscii( name ).toAsciiLowerCase() );
- OUString aHeaderValue( OUString::createFromAscii( value ) );
+ OUString aHeaderName(OUString(name, strlen(name), RTL_TEXTENCODING_ASCII_US).toAsciiLowerCase());
+ OUString aHeaderValue(value, strlen(value), RTL_TEXTENCODING_ASCII_US);
// display the single header
SAL_INFO( "ucb.ucp.webdav", "OPTIONS - received header: " << aHeaderName << ":" << aHeaderValue );