Modify ↓
Ticket #8884 (closed bug: fixed)
jqXHR breaks names of custom header fields
| Reported by: | debil@… | Owned by: | sbisbee |
|---|---|---|---|
| Priority: | high | Milestone: | 1.6 |
| Component: | ajax | Version: | 1.5.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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
comment:1 Changed 2 years ago by rwaldron
- Owner set to sbisbee
- Priority changed from undecided to high
- Status changed from new to assigned
- Component changed from unfiled to ajax
comment:2 Changed 2 years ago by jaubourg
- Status changed from assigned to closed
- Resolution set to fixed
- Milestone changed from 1.next to 1.6
comment:4 Changed 2 years ago by jaubourg
(Re) Fixes #8884 in a way that keeps the format of the headers map sent to transports natural.
Changeset: 3a3842c6696f121392c89b68f2f061043405ae9f
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
