Add remote and local addresses to GCDWebServerRequest

This commit is contained in:
Sergio Padrino
2015-03-20 13:39:58 +01:00
parent fe472cdd54
commit 79d6075a84
4 changed files with 39 additions and 1 deletions
@@ -548,6 +548,8 @@ static inline NSUInteger _ScanHexNumber(const void* bytes, NSUInteger size) {
}
}
if (_request) {
_request.localAddressData = self.localAddressData;
_request.remoteAddressData = self.remoteAddressData;
if ([_request hasBody]) {
[_request prepareForWriting];
if (_request.usesChunkedTransferEncoding || (extraData.length <= _request.contentLength)) {