AliSoftware / AliSoftware/OHHTTPStubs

Mocktail and Content-Type

オープン
#288 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Objective-C
スター
5.1k
フォーク
597
PR マージ指標
30日以内にマージされた PR はありません

説明

Here is file produced by `SWHttpTrafficRecorder`:

GET
//getFile.php\?filename=.*$
200
application/zip;base64
Content-Type: application/zip

As you see we have Content-Type = application/zip from request's header and also content type generated by recorder. With current `OHHTTPStubs` implementation first value ` application/zip;base64` will be overwritten by `application/zip` and base64 decoding will not happen. This leads to bug.

Could you tell me who is wrong is this situation, `OHHTTPStubs` or `SWHttpTrafficRecorder`?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。