开发者社区> 问答> 正文

OSSCClientAPI代码问题

OSSUtil.cpp文件中的 populateRequestMetadata() 函数有错:应该是给用户元数据名加 "x-oss-meta-" 前缀,而不是给值加前缀。
SignUtil.cpp文件中的 buildCanonicalString(...) 函数有瑕疵 —— 判 "x-oss-"  前缀应忽略大小写;而且应将用户元数据名(以"x-oss-meta-" 为前缀)转为小写。


展开
收起
mophon 2014-10-30 13:39:32 6496 0
2 条回答
写回答
取消 提交回答
  • ReOSSCClientAPI代码问题
    /*
    Copyright 2012 baocai zhang. All rights reserved.

    Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

    Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
    Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
    THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

    The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of the FreeBSD Project.
    */

    /*
    @author baocai zhang
    website:www.giser.net
    email:zhangbaocaicug@gmail.com
    */
    2014-10-31 15:54:31
    赞同 展开评论 打赏
  • ReOSSCClientAPI代码问题
    请问你用的是哪个c sdk?能给出链接吗?谢谢!

    -------------------------

    ReOSSCClientAPI代码问题
    HI
      
        已经发信联系原作者。
    2014-10-30 15:54:13
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
《0代码搭应用》 立即下载
不止代码 立即下载
用RxSwift写易维护易读的愉悦代码 立即下载