SeasideSt / Seaside

The framework for developing sophisticated web applications in Smalltalk.
MIT License
519 stars 71 forks source link

Multiple value Headers only set the latest one when converting a WAResponse to ZnResponse #1211

Closed eMaringolo closed 4 years ago

eMaringolo commented 4 years ago

In ZnZincServerAdaptor>>#responseFrom: the header conversion from WAHeaderFields to ZnHeaders if a header appears several times in aWAHeaderFields only the last one in the iteration is added to ZnResponse headers.

"<snip>"
partialHeaders  keysAndValuesDo: [ :key :value | fullHeaders at: key put: value greaseString ].

It does at:put and it should do at:add: instead.