aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Setup
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-06-17 15:17:20 -0400
committerJoey Hess <joey@kitenet.net>2011-06-17 15:17:20 -0400
commitace3665f811774a6eb64b908bf88178b0c8f3689 (patch)
treef79dd0ad118072d74a616586cdf26b89e93ec362 /IkiWiki/Setup
parentd82fa99426616f9cbedf43f03a3445e1b09287f6 (diff)
downloadikiwiki-ace3665f811774a6eb64b908bf88178b0c8f3689.tar
ikiwiki-ace3665f811774a6eb64b908bf88178b0c8f3689.tar.gz
improve detection of ajax request
Firefox sent an accept header for application/xml, not application/json, and also weakened the priority to 0.8. So that stuff is not to be trusted; instead I found a better way: When an ajax upload is *not* being made, the Upload Attachment button will be used, so enable ajax if an upload is being made without that button having been used. Also, testing with firefox revealed it refused to process a response that was type application/json, and checking the demo page for the jquery file upload plugin, it actually returns the json with type text/html. Ugh. Followed suite. Now tested with: chromium, chromium (w/o js), firefox, firefox (w/o js), and w3m.
Diffstat (limited to 'IkiWiki/Setup')
0 files changed, 0 insertions, 0 deletions