UNPKG
stream-http
Version:
latest (3.2.0)
3.2.0
3.1.1
3.1.0
3.0.0
2.8.3
2.8.2
2.8.1
2.8.0
2.7.2
2.7.1
2.7.0
2.6.3
2.6.2
2.6.1
2.6.0
2.5.0
2.4.1
2.4.0
2.3.1
2.3.0
2.2.1
2.2.0
2.1.1
2.1.0
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.7.1
1.7.0
1.6.0
1.5.0
1.4.1
1.4.0
1.3.0
1.2.1
1.2.0
1.1.1
1.0.2
1.0.1
1.0.0
Streaming http in the browser
github.com/jhiesey/stream-http
jhiesey/stream-http
stream-http
/
test
/
server
/
static
/
test-polyfill.js
10 lines
(9 loc)
•
234 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
if
(!
String
.
prototype
.
trim
) { (
function
(
) {
// Make sure we trim BOM and NBSP
var
rtrim =
/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g
;
String
.
prototype
.
trim
=
function
(
) {
return
this
.
replace
(rtrim,
''
); }; })(); }