Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#12011 closed bug (invalid)

HEAD only response caused JQUERY parser fail

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:


When I return a HEAD 200 to a Jquery ajax call. I got: JSON Parse error: Unexpected EOF. The whole error looks like this:


pass back an empty JSON then it is OK

my ajax call looks like this:

    var form_values = $(this).serializeArray();
      url: "/login.json",
      type: "post",
      data: form_values,
      success: function(){
        window.location.href = "/";

      error: function(jqXHR, textStatus, errorThrown){
    return false;

Change History (2)

comment:1 Changed 11 years ago by dmethvin

Resolution: invalid
Status: newclosed

Yeah, don't pass back nothing if the request is expecting something.

comment:2 Changed 11 years ago by anonymous

The point is the request is not really expecting something. The user script can handle empty json case, just query can't.

Note: See TracTickets for help on using tickets.