fix #216, http-callback post in application/json content-type. 2.0.83
正在显示
3 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -501,6 +501,7 @@ Supported operating systems and hardware: | @@ -501,6 +501,7 @@ Supported operating systems and hardware: | ||
| 501 | * 2013-10-17, Created.<br/> | 501 | * 2013-10-17, Created.<br/> |
| 502 | 502 | ||
| 503 | ## History | 503 | ## History |
| 504 | +* v2.0, 2015-01-02, hotfix [#216](https://github.com/winlinvip/simple-rtmp-server/issues/216), http-callback post in application/json content-type. 2.0.83 | ||
| 504 | * v2.0, 2014-01-02, fix [#263](https://github.com/winlinvip/simple-rtmp-server/issues/263), srs-librtmp flv read tag should init size. 2.0.82 | 505 | * v2.0, 2014-01-02, fix [#263](https://github.com/winlinvip/simple-rtmp-server/issues/263), srs-librtmp flv read tag should init size. 2.0.82 |
| 505 | * v2.0, 2015-01-01, hotfix [#270](https://github.com/winlinvip/simple-rtmp-server/issues/270), memory leak for http client post. 2.0.81 | 506 | * v2.0, 2015-01-01, hotfix [#270](https://github.com/winlinvip/simple-rtmp-server/issues/270), memory leak for http client post. 2.0.81 |
| 506 | * v2.0, 2014-12-12, fix [#266](https://github.com/winlinvip/simple-rtmp-server/issues/266), aac profile is object id plus one. 2.0.80 | 507 | * v2.0, 2014-12-12, fix [#266](https://github.com/winlinvip/simple-rtmp-server/issues/266), aac profile is object id plus one. 2.0.80 |
| @@ -547,6 +548,7 @@ Supported operating systems and hardware: | @@ -547,6 +548,7 @@ Supported operating systems and hardware: | ||
| 547 | * v2.0, 2014-10-18, remove supports for OSX(darwin). 2.0.1. | 548 | * v2.0, 2014-10-18, remove supports for OSX(darwin). 2.0.1. |
| 548 | * v2.0, 2014-10-16, revert github srs README to English. 2.0.0. | 549 | * v2.0, 2014-10-16, revert github srs README to English. 2.0.0. |
| 549 | 550 | ||
| 551 | +* v1.0, 2015-01-02, hotfix [#216](https://github.com/winlinvip/simple-rtmp-server/issues/216), http-callback post in application/json content-type. 1.0.17 | ||
| 550 | * v1.0, 2015-01-01, hotfix [#270](https://github.com/winlinvip/simple-rtmp-server/issues/270), memory leak for http client post. 1.0.16 | 552 | * v1.0, 2015-01-01, hotfix [#270](https://github.com/winlinvip/simple-rtmp-server/issues/270), memory leak for http client post. 1.0.16 |
| 551 | * v1.0, 2014-12-29, hotfix [#267](https://github.com/winlinvip/simple-rtmp-server/issues/267), the forward dest ep should use server. 1.0.15 | 553 | * v1.0, 2014-12-29, hotfix [#267](https://github.com/winlinvip/simple-rtmp-server/issues/267), the forward dest ep should use server. 1.0.15 |
| 552 | * v1.0, 2014-12-29, hotfix [#268](https://github.com/winlinvip/simple-rtmp-server/issues/268), the hls pcr is negative when startup. 1.0.14 | 554 | * v1.0, 2014-12-29, hotfix [#268](https://github.com/winlinvip/simple-rtmp-server/issues/268), the hls pcr is negative when startup. 1.0.14 |
| @@ -81,7 +81,7 @@ int SrsHttpClient::post(SrsHttpUri* uri, string req, string& res) | @@ -81,7 +81,7 @@ int SrsHttpClient::post(SrsHttpUri* uri, string req, string& res) | ||
| 81 | << "Connection: Keep-Alive" << __SRS_CRLF | 81 | << "Connection: Keep-Alive" << __SRS_CRLF |
| 82 | << "Content-Length: " << std::dec << req.length() << __SRS_CRLF | 82 | << "Content-Length: " << std::dec << req.length() << __SRS_CRLF |
| 83 | << "User-Agent: " << RTMP_SIG_SRS_NAME << RTMP_SIG_SRS_VERSION << __SRS_CRLF | 83 | << "User-Agent: " << RTMP_SIG_SRS_NAME << RTMP_SIG_SRS_VERSION << __SRS_CRLF |
| 84 | - << "Content-Type: text/html" << __SRS_CRLF | 84 | + << "Content-Type: application/json" << __SRS_CRLF |
| 85 | << __SRS_CRLF | 85 | << __SRS_CRLF |
| 86 | << req; | 86 | << req; |
| 87 | 87 |
| @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 31 | // current release version | 31 | // current release version |
| 32 | #define VERSION_MAJOR 2 | 32 | #define VERSION_MAJOR 2 |
| 33 | #define VERSION_MINOR 0 | 33 | #define VERSION_MINOR 0 |
| 34 | -#define VERSION_REVISION 82 | 34 | +#define VERSION_REVISION 83 |
| 35 | // server info. | 35 | // server info. |
| 36 | #define RTMP_SIG_SRS_KEY "SRS" | 36 | #define RTMP_SIG_SRS_KEY "SRS" |
| 37 | #define RTMP_SIG_SRS_ROLE "origin/edge server" | 37 | #define RTMP_SIG_SRS_ROLE "origin/edge server" |
-
请 注册 或 登录 后发表评论