2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

cocos2dx v3.3, v3.4のGETリクエストでhttpheaderを追加できなかった

2
Last updated at Posted at 2015-03-15

どういうこと?

以下のコードで本来ならhttpheaderを追加できるはずだが
GETリクエストではhttpheaderが追加されていなかった
(PUTとPOSTしか追加されないようになっていた)

vector<string> h;
h.push_back("X-Parse-Application-Id: SOME_ID");
auto request = new cocos2d::network::HttpRequest();
request->setHeaders(h);

2dxからGETでParse.comにアクセスしてccHttpRequestCallback が処理されなかった
WireSharkで見てhttpheaderが追加されていないのに気づいた

修正内容

既に解決されてPRはmergeされているが v3.3, v3.4, v3.5 には
2015-03-16時点では mergeされてない
https://github.com/cocos2d/cocos2d-x/pull/10483

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?