Skip to content
Permalink
Browse files

Added a default quality of `*/*` for content negotiation.

  • Loading branch information
Heungsub Lee authored and jeresig committed Jul 7, 2010
1 parent 7862c45 commit 033a4c41e0440106a0dffdd7328cd8b04781b45d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ajax.js
@@ -377,7 +377,7 @@ jQuery.extend({

// Set the Accepts header for the server, depending on the dataType
xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
s.accepts[ s.dataType ] + ", */*" :
s.accepts[ s.dataType ] + ", */*; q=0.01" :
s.accepts._default );
} catch( headerError ) {}

0 comments on commit 033a4c4

Please sign in to comment.
You can’t perform that action at this time.