| commit 4243: | 255e8d0ff9a5 |
| parent 4242: | 364af864fec6 |
| branch: | tcp |
Send all of the headersForResult when sending a callback, too
17 months ago
Changed (Δ190 bytes):
raw changeset »
Core/Source/GrowlNotificationGNTPPacket.m (1 lines added, 3 lines removed)
Up to file-list Core/Source/GrowlNotificationGNTPPacket.m:
330 |
330 |
|
331 |
331 |
- (NSArray *)headersForCallbackResult_wasClicked:(BOOL)wasClicked |
332 |
332 |
{ |
333 |
NSMutableArray *headersForCallbackResult = [NSMutableArray array]; |
|
334 |
[headersForCallbackResult addObject:[GrowlGNTPHeaderItem headerItemWithName:@"Notification-ID" value:[self identifier]]]; |
|
333 |
NSMutableArray *headersForCallbackResult = [[[self headersForResult] mutableCopy] autorelease]; |
|
335 |
334 |
[headersForCallbackResult addObject:[GrowlGNTPHeaderItem headerItemWithName:@"Notification-Callback-Result" |
336 |
335 |
value:(wasClicked ? @"CLICKED" : @"CLOSED")]]; |
337 |
336 |
[headersForCallbackResult addObject:[GrowlGNTPHeaderItem headerItemWithName:@"Notification-Callback-Timestamp" |
338 |
337 |
value:[[NSCalendarDate date] ISO8601DateString]]]; |
339 |
338 |
[headersForCallbackResult addObject:[GrowlGNTPHeaderItem headerItemWithName:@"Notification-Callback-Context" value:[self callbackContext]]]; |
340 |
339 |
[headersForCallbackResult addObject:[GrowlGNTPHeaderItem headerItemWithName:@"Notification-Callback-Context-Type" value:[self callbackContextType]]]; |
341 |
if ([self customHeaders]) [headersForCallbackResult addObjectsFromArray:[self customHeaders]]; |
|
342 |
340 |
|
343 |
341 |
return headersForCallbackResult; |
344 |
342 |
} |
