Actions
Bug #2062
closedFixed JSON in mod_uploadprogress
ASK QUESTIONS IN Forums:
Description
JSON does not contain "new Object({...}) but only {...}
http://en.wikipedia.org/wiki/JSON
Otherwise mod_uploadprogress does not work with JS libraries
like Mootools, jQuery, ...
Easy patch:
473c473
< buffer_append_string_len(b, CONST_STR_LEN("new Object({ 'state' : 'starting' })\r\n"));
---
buffer_append_string_len(b, CONST_STR_LEN("{ 'state' : 'starting' }\r\n"));
481c481
< buffer_copy_string_len(b, CONST_STR_LEN("new Object({ 'state' : "));
---
buffer_copy_string_len(b, CONST_STR_LEN("{ 'state' : "));
498c498
< buffer_append_string_len(b, CONST_STR_LEN("})\r\n"));
---
buffer_append_string_len(b, CONST_STR_LEN("}\r\n"));
Actions
Also available in: Atom