This queue is for tickets about the SOAP-Lite CPAN distribution.

Report information
The Basics
Id:
120680
Status:
new
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
andreas.j.fuchs [...] unify.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: Issue with HTTP.pm: HTTP request header has 3 "Accept" fields-> there should only be one "Accept" field with a comma separated list
Date: Tue, 21 Mar 2017 13:58:16 +0000
To: "bug-SOAP-Lite@rt.cpan.org" <bug-SOAP-Lite@rt.cpan.org>
From: "Fuchs, Andreas" <andreas.j.fuchs@unify.com>

Dear Development,

 

We have identified an issue in the HTTP.pm file: according  the RFC there should be only one HTTP header field with the name “Accept” but the current implementation assigns an array with 3 values:  

$http_request->header(Accept => ['text/xml', 'multipart/*', 'application/soap']);  

And this produces 3 accept entries in the HTTP request

accept: text/xml

accept: multipart/*

accept: application/soap

 

Please change the implementation and assign only a string (comma separated list of values) to the accept field:

$http_request->header(Accept => "text/xml, multipart/*, application/soap" );     

This change would produce only one accept entry in the HTTP request

accept: text/xml, accept: multipart/*, application/soap

 

 

Best regards,

Andreas Fuchs

 

 



This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.