drogus / apache-upload-progress-module

Upload progress module for apache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Progress requests return invalid JSON

evanworley opened this issue · comments

Currently the response is in the form

new Object({ 'state' : 'uploading', 'received' : 883855, 'size' : 164705492, 'speed' : 294618  })

which is valid javascript, but not json. It would be ideal if the response were simply

{ 'state' : 'uploading', 'received' : 883855, 'size' : 164705492, 'speed' : 294618  }

so it could be handled as JSON and not requiring javascript evaluation. This would allow calls via .getJson in JQuery, etc.

Cheers,
Cypher

Fixed by ^simplecircle in 2dd2484