Skip to content

Commit

Permalink
Merge pull request #1387 from SeasideSt/fix-zincadaptor-repeatedheaders
Browse files Browse the repository at this point in the history
Fix #requestHeadersFor: on ZnZincServerAdaptor to combine field values for repeated field names
  • Loading branch information
Johan Brichau authored Nov 4, 2023
2 parents b8dfffd + ed0006f commit 161e96f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@ requestHeadersFor: aZincRequest
| fields |
fields := Dictionary new.
aZincRequest headersDo: [ :key :value |
fields at: key asLowercase put: value ].
| keyLowercase combinedValue |
keyLowercase := key asLowercase.
combinedValue := fields at: keyLowercase
ifPresent: [ :presentValue | presentValue , ',' , value ]
ifAbsent: [ value ].
fields at: keyLowercase put: combinedValue ].
^ fields

0 comments on commit 161e96f

Please sign in to comment.