Hi,

I'm use WebServer library. That uses GSMimeDocuments to send back a response to 
the client.

I want to set multiple cookies in the response so I do:

      for (id C in cookies)
        {
          [response setHeader:@"Set-Cookie"
                        value:[NSString stringWithFormat:@"%@=%@", [C 
objectAtIndex:0], [C objectAtIndex:1]]
                   parameters:[NSDictionary dictionaryWithObjectsAndKeys:@"/", 
@"path", nil]];
           NSLog(@"the response: %@", response);
        }

However, I recognized, when setting a header with same name, it will override 
prior occurrences,
as the NSLog tells me. Reconsulting the documentation, it seems to work as 
designed.

Is there another way to set multiple headers with the same name, specifically 
to allow me to set 
multiple cookies in the response?

Sebastian


_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to