Skip to main content

Bug Tracker

Side navigation

#6908 closed bug (fixed)

Opened August 16, 2010 01:48PM UTC

Closed October 25, 2010 08:16PM UTC

Last modified October 27, 2010 12:27AM UTC

$.ajax doesn't ignore case of scheme and host in URL.

Reported by: YOCKOW Owned by: SlexAxton
Priority: low Milestone: 1.4.4
Component: ajax Version: 1.4.3
Keywords: ajax, case-senstivity Cc:
Blocked by: Blocking:

(ver 1.4.2)

line 5058: remote = parts && (parts[1] && parts[1] !== location.protocol || parts[2] !==;


remote = parts && (parts[1] && parts[1].toLowerCase() !== location.protocol.toLowerCase() || parts[2].toLowerCase() !==;

because scheme in URL and domain names are case-insensitive.

Attachments (0)
Change History (7)

Changed October 21, 2010 02:06AM UTC by SlexAxton comment:1

priority: → undecided
status: newopen

I think this is valid. I'm not sure this comes up a lot, but if we think it's worth the few extra bytes, it could save someone some pain. Thoughts?

Changed October 21, 2010 02:07AM UTC by SlexAxton comment:2

priority: undecidedlow

Changed October 21, 2010 04:13AM UTC by SlexAxton comment:3

keywords: → ajax, case-senstivity
owner: → SlexAxton
status: openassigned

Changed October 21, 2010 04:16AM UTC by SlexAxton comment:4

I have made a pull request for this.

Changed October 21, 2010 10:57PM UTC by snover comment:5


Retargeting due to severity of regressions in 1.4.3.

Changed October 25, 2010 08:16PM UTC by john comment:6

resolution: → fixed
status: assignedclosed

Changed October 27, 2010 12:27AM UTC by snover comment:7

#6873 is a duplicate of this ticket.