Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
$.getJSON treats request as JSONP when URL contains ?? (two question marks) #1791
Originally reported by Stijn at: http://bugs.jquery.com/ticket/15216
Similar to http://bugs.jquery.com/ticket/8417 and its duplicates, but they're all about the data parameter, not the URL parameter.
Happens with current stable and with edge. Fiddle: http://jsfiddle.net/r5zcw6wx/
$.getJSON("http://date.jsontest.com/") $.getJSON("http://date.jsontest.com/?foo") $.getJSON("http://date.jsontest.com/??foo")
GET http://date.jsontest.com/ GET http://date.jsontest.com/?foo GET http://date.jsontest.com/jQuery2129957077760988448071399739372034175163514043816_1408610547781foo?_=1408610547782
Of course we shouldn't be making requests with two question marks (naive string concat on our side), and this could be a dupe of the mentioned ticket, but I figured this was worth reporting anyway.
Issue reported for jQuery 2.1.1