#8884 closed bug (fixed)
jqXHR breaks names of custom header fields
Reported by: | Owned by: | sbisbee | |
---|---|---|---|
Priority: | high | Milestone: | 1.6 |
Component: | ajax | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I want to send an OCCI header via a jQuery.ajax() request.
The header is
X-OCCI-Attribute: occi.compute.Category=compute occi.compute.architecture=x86 occi.compute.cores=2 occi.compute.hostname=test occi.compute.memory=2.0 occi.compute.speed=2.4
What jQuery sends to the server is
X-Occi-Attribute: occi.compute.Category=compute occi.compute.architecture=x86 occi.compute.cores=2 occi.compute.hostname=test occi.compute.memory=2.0 occi.compute.speed=2.4
As you can see the name for the header value is changed from X-OCCI-Attribute to X-Occi-Attribute. Since the header value's name is case sensitive for OCCI, this breaks communication with the API.
Please do not change the case of header field names.
Change History (4)
comment:1 Changed 12 years ago by
Component: | unfiled → ajax |
---|---|
Owner: | set to sbisbee |
Priority: | undecided → high |
Status: | new → assigned |
comment:2 Changed 12 years ago by
Milestone: | 1.next → 1.6 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
comment:4 Changed 12 years ago by
(Re) Fixes #8884 in a way that keeps the format of the headers map sent to transports natural.
Changeset: 3a3842c6696f121392c89b68f2f061043405ae9f
Note: See
TracTickets for help on using
tickets.
https://github.com/jquery/jquery/commit/a9a79ccc6e5a3630c9925c267763591236597bcb