1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine hls m3u8, use LR(0x0a, \n) as new line char

This commit is contained in:
winlin 2015-02-10 11:38:14 +08:00
parent 81ea6d34ce
commit 693c7a5349
3 changed files with 25 additions and 14 deletions

View file

@ -51,13 +51,13 @@ class ISrsGoHttpResponseWriter;
// http specification
// CR = <US-ASCII CR, carriage return (13)>
#define __SRS_CR "\r" // 0x0D
#define __SRS_CR SRS_CONSTS_CR // 0x0D
// LF = <US-ASCII LF, linefeed (10)>
#define __SRS_LF "\n" // 0x0A
#define __SRS_LF SRS_CONSTS_LF // 0x0A
// SP = <US-ASCII SP, space (32)>
#define __SRS_SP " " // 0x20
#define __SRS_SP ' ' // 0x20
// HT = <US-ASCII HT, horizontal-tab (9)>
#define __SRS_HT "\x09" // 0x09
#define __SRS_HT '\x09' // 0x09
// HTTP/1.1 defines the sequence CR LF as the end-of-line marker for all
// protocol elements except the entity-body (see appendix 19.3 for