Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Fix for issue #25: invalid content type header #27

merged 1 commit into from

2 participants

Francisco Dalla Rosa Soares Piotr Sarnacki
Francisco Dalla Rosa Soares

I agree with the issue creator on that as the content returned is not javascript but json, the content-type has to be fixed to conform to the return data type.
I've fixed the content-type from 'text/javascript' to 'application/json' so if you agree with that position, I'd be glad if you accepted my pull request.

Piotr Sarnacki drogus merged commit c7b11f5 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 4, 2011
  1. changed the content-type from text/javascript to application/json

    Francisco Dalla Rosa Soares authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod_upload_progress.c
2  mod_upload_progress.c
@@ -708,7 +708,7 @@ static int reportuploads_handler(request_rec *r)
- ap_set_content_type(r, "text/javascript");
+ ap_set_content_type(r, "application/json");
apr_table_set(r->headers_out, "Expires", "Mon, 28 Sep 1970 06:00:00 GMT");
apr_table_set(r->headers_out, "Cache-Control", "no-cache");
Something went wrong with that request. Please try again.