Differences From Artifact [5b5e9e2174]:
- File
src/OFHTTPServer.m
— part of check-in
[58d4025602]
at
2016-01-05 14:10:52
on branch trunk
— Better randomization of HTTP header order
This should randomize the order of all headers now, preventing
fingerprinting by the order of HTTP headers. (user: js, size: 15884) [annotate] [blame] [check-ins using]
To Artifact [e2c16ad886]:
- File
src/OFHTTPServer.m
— part of check-in
[6b4d138cc3]
at
2016-01-05 14:55:47
on branch trunk
— OFHTTPServer: Allow setting name to nil
Setting it to nil means no Server header is sent. (user: js, size: 15936) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
221 222 223 224 225 226 227 | OFString *date = [[OFDate date] dateStringWithFormat: @"%a, %d %b %Y %H:%M:%S GMT"]; [headers setObject: date forKey: @"Date"]; } | | > > > | | > | 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | OFString *date = [[OFDate date] dateStringWithFormat: @"%a, %d %b %Y %H:%M:%S GMT"]; [headers setObject: date forKey: @"Date"]; } if ([headers objectForKey: @"Server"] == nil) { OFString *name = [_server name]; if (name != nil) [headers setObject: name forKey: @"Server"]; } keyEnumerator = [headers keyEnumerator]; valueEnumerator = [headers objectEnumerator]; while ((key = [keyEnumerator nextObject]) != nil && (value = [valueEnumerator nextObject]) != nil) [_socket writeFormat: @"%@: %@\r\n", key, value]; |
︙ | ︙ |